Changeset 1891

Show
Ignore:
Timestamp:
Fri Jan 27 14:12:57 2006
Author:
fgerlits
Message:

removed extra testing code (has been moved to modules/playlistExecutor)

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/livesupport/src/products/gLiveSupport/src/AudioPlayerTest.cxx

    r1890 r1891  
    302 302 }  
    303 303  
    304    
    305   /*------------------------------------------------------------------------------  
    306    *  Test if we can switch back and forth between devices.  
    307    *----------------------------------------------------------------------------*/  
    308   void  
    309   AudioPlayerTest :: switchDevicesTest(void)  
    310                                                   throw (CPPUNIT_NS::Exception)  
    311   {  
    312       Ptr<AudioPlayerFactory>::Ref        audioPlayerFactory;  
    313       audioPlayerFactory = AudioPlayerFactory::getInstance();  
    314       CPPUNIT_ASSERT(audioPlayerFactory.get());  
    315    
    316       Ptr<AudioPlayerInterface>::Ref      audioPlayer;  
    317       audioPlayer = audioPlayerFactory->getAudioPlayer();  
    318       CPPUNIT_ASSERT(audioPlayer.get());  
    319    
    320       audioPlayer->setAudioDevice("/dev/dsp");  
    321       CPPUNIT_ASSERT_NO_THROW(  
    322           audioPlayer->open("file:var/testAudio.ogg")  
    323       );  
    324       audioPlayer->start();  
    325       Ptr<time_duration>::Ref     sleepT(new time_duration(microseconds(10)));  
    326       while (audioPlayer->isPlaying()) {  
    327           TimeConversion::sleep(sleepT);  
    328       }  
    329       audioPlayer->close();  
    330        
    331       audioPlayer->setAudioDevice("plughw:0,0");  
    332       CPPUNIT_ASSERT_NO_THROW(  
    333           audioPlayer->open("file:var/testAudio.ogg")  
    334       );  
    335       audioPlayer->start();  
    336       while (audioPlayer->isPlaying()) {  
    337           TimeConversion::sleep(sleepT);  
    338       }  
    339       audioPlayer->close();  
    340   }  
    341    
  • trunk/livesupport/src/products/gLiveSupport/src/AudioPlayerTest.h

    r1890 r1891  
    74 74     CPPUNIT_TEST(playAudioClipTest);  
    75 75     CPPUNIT_TEST(playPlaylistTest);  
    76       CPPUNIT_TEST(switchDevicesTest);  
    77 76     CPPUNIT_TEST_SUITE_END();  
    78 77  
    110 109         playPlaylistTest(void)                  throw (CPPUNIT_NS::Exception);  
    111 110  
    112           /**  
    113            *  Test if we can switch back and forth between devices.  
    114            *  
    115            *  @exception CPPUNIT_NS::Exception on test failures.  
    116            */  
    117           void  
    118           switchDevicesTest(void)                 throw (CPPUNIT_NS::Exception);  
    119    
    120 111     public:  
    121 112