Revision 14:e48fdc8de790 TestInitialise.cpp

View differences:

TestInitialise.cpp
59 59
static const size_t _step = 1000;
60 60

  
61 61
Test::Results
62
TestSampleRates::test(string key, Options options)
62
TestSampleRates::test(string key, Options)
63 63
{
64 64
    int rates[] =
65 65
        { 1, 800, 10099, 11024, 44100, 48000, 96000, 192000, 201011, 1094091 };
66 66

  
67 67
    Results r;
68 68

  
69
    for (int i = 0; i < sizeof(rates)/sizeof(rates[0]); ++i) {
69
    for (int i = 0; i < int(sizeof(rates)/sizeof(rates[0])); ++i) {
70 70
    
71 71
        int rate = rates[i];
72 72
        auto_ptr<Plugin> p(load(key, rate));
......
100 100
}
101 101

  
102 102
Test::Results
103
TestLengthyConstructor::test(string key, Options options)
103
TestLengthyConstructor::test(string key, Options)
104 104
{
105 105
    time_t t0 = time(0);
106 106
    auto_ptr<Plugin> p(load(key));

Also available in: Unified diff