mpengine/tsrc/unittest_mpengine/src/unittest_mpengine.cpp
changeset 54 c5b304f4d89b
parent 48 af3740e3753f
equal deleted inserted replaced
48:af3740e3753f 54:c5b304f4d89b
   523 void TestMpEngine::testDisableEqualizer()
   523 void TestMpEngine::testDisableEqualizer()
   524 {
   524 {
   525     mTest = MpEngineFactory::createIsolatedEngine( MpEngine::StandAlone );
   525     mTest = MpEngineFactory::createIsolatedEngine( MpEngine::StandAlone );
   526     mTest->disableEqualizer();
   526     mTest->disableEqualizer();
   527     
   527     
   528     QCOMPARE( mTest->mCurrentPresetIndex, KEqualizerPresetNone );
   528     QCOMPARE( mTest->mCurrentPresetIndex, 0 );
   529 }
   529 }
   530 
   530 
   531 /*!
   531 /*!
   532  test activePreset
   532  test activePreset
   533  */
   533  */
   555 {
   555 {
   556     mTest = MpEngineFactory::createIsolatedEngine( MpEngine::StandAlone );
   556     mTest = MpEngineFactory::createIsolatedEngine( MpEngine::StandAlone );
   557     QSignalSpy spy( mTest, SIGNAL( equalizerReady() ) );
   557     QSignalSpy spy( mTest, SIGNAL( equalizerReady() ) );
   558     
   558     
   559     mTest->handleEqualizerReady();
   559     mTest->handleEqualizerReady();
   560     QCOMPARE( mTest->mCurrentPresetIndex, 1 );
   560     QCOMPARE( mTest->mCurrentPresetIndex, 0 );
   561     QVERIFY( spy.count() == 1 );
   561     QVERIFY( spy.count() == 1 );
   562 }
   562 }
   563 
   563 
   564 
   564 
   565 // End of file
   565 // End of file