Revision 8:3019cb6b538d TestInputExtremes.cpp

View differences:

TestInputExtremes.cpp
67 67
TestRandomInput::m_registrar("C6 Random input");
68 68

  
69 69
Test::Results
70
TestNormalInput::test(string key)
70
TestNormalInput::test(string key, Options options)
71 71
{
72 72
    Plugin::FeatureSet f;
73 73
    int rate = 44100;
......
95 95
        r.push_back(success());
96 96
    } else {
97 97
        r.push_back(warning("plugin returned one or more NaN/inf values"));
98
        if (options & Verbose) dump(f);
98 99
    }
99 100
    return r;
100 101
}
101 102

  
102 103
Test::Results
103
TestNoInput::test(string key)
104
TestNoInput::test(string key, Options options)
104 105
{
105 106
    auto_ptr<Plugin> p(load(key));
106 107
    Results r;
......
116 117
}
117 118

  
118 119
Test::Results
119
TestShortInput::test(string key)
120
TestShortInput::test(string key, Options options)
120 121
{
121 122
    Plugin::FeatureSet f;
122 123
    int rate = 44100;
......
141 142
        r.push_back(success());
142 143
    } else {
143 144
        r.push_back(warning("plugin returned one or more NaN/inf values"));
145
        if (options & Verbose) dump(f);
144 146
    }
145 147
    return r;
146 148
}
147 149

  
148 150
Test::Results
149
TestSilentInput::test(string key)
151
TestSilentInput::test(string key, Options options)
150 152
{
151 153
    Plugin::FeatureSet f;
152 154
    int rate = 44100;
......
172 174
        r.push_back(success());
173 175
    } else {
174 176
        r.push_back(warning("plugin returned one or more NaN/inf values"));
177
        if (options & Verbose) dump(f);
175 178
    }
176 179
    return r;
177 180
}
178 181

  
179 182
Test::Results
180
TestTooLoudInput::test(string key)
183
TestTooLoudInput::test(string key, Options options)
181 184
{
182 185
    Plugin::FeatureSet f;
183 186
    int rate = 44100;
......
205 208
        r.push_back(success());
206 209
    } else {
207 210
        r.push_back(warning("plugin returned one or more NaN/inf values"));
211
        if (options & Verbose) dump(f);
208 212
    }
209 213
    return r;
210 214
}
211 215

  
212 216
Test::Results
213
TestRandomInput::test(string key)
217
TestRandomInput::test(string key, Options options)
214 218
{
215 219
    Plugin::FeatureSet f;
216 220
    int rate = 44100;
......
238 242
        r.push_back(success());
239 243
    } else {
240 244
        r.push_back(warning("plugin returned one or more NaN/inf values"));
245
        if (options & Verbose) dump(f);
241 246
    }
242 247
    return r;
243 248
}

Also available in: Unified diff