void pff_pause_disconnect_test::test() { int error = 0; char *filename = new char[iFilename.get_size() + 1]; if ((filename == NULL) || (oscl_UnicodeToUTF8(iFilename.get_cstr(), iFilename.get_size(), filename, iFilename.get_size() + 1) == 0)) { OSCL_LEAVE(-1); } fprintf(fileoutput, "Start play from file pause disconnect test, before add source %d, file %s\n", iUsePlayFileBeforeAddSource, filename); delete filename; scheduler = OsclExecScheduler::Current(); this->AddToScheduler(); if (start_async_test()) { OSCL_TRY(error, scheduler->StartScheduler()); if (error != 0) { OSCL_LEAVE(error); } } destroy_sink_source(); this->RemoveFromScheduler(); }
void pff_eos_test::test() { int error = 0; char *filename = new char[iFilename.get_size() + 1]; if ((filename == NULL) || (oscl_UnicodeToUTF8(iFilename.get_cstr(), iFilename.get_size(), filename, iFilename.get_size() + 1) == 0)) { OSCL_LEAVE(-1); } fprintf(fileoutput, "Start pff eos test, num runs %d, audio eos %d, vidoe eos %d, proxy %d, file %s\n", iMaxRuns, iWaitForAudioEOS, iWaitForVideoEOS, iUseProxy, filename); delete filename; scheduler = OsclExecScheduler::Current(); this->AddToScheduler(); if (start_async_test()) { OSCL_TRY(error, scheduler->StartScheduler()); if (error != 0) { OSCL_LEAVE(error); } } destroy_sink_source(); this->RemoveFromScheduler(); }
void connect_test::test() { fprintf(fileoutput, "Start %s test, num runs %d, proxy %d.\n", iRunTimerTest ? "timer configuration and encoder extension IF" : "connect", iMaxRuns, iUseProxy); int error = 0; scheduler = OsclExecScheduler::Current(); this->AddToScheduler(); if (start_async_test()) { OSCL_TRY(error, scheduler->StartScheduler()); if (error != 0) { OSCL_LEAVE(error); } } this->RemoveFromScheduler(); }
void init_cancel_test::test() { fprintf(fileoutput, "Start init cancel test, proxy %d.\n", iUseProxy); int error = 0; scheduler = OsclExecScheduler::Current(); this->AddToScheduler(); if (start_async_test()) { OSCL_TRY(error, scheduler->StartScheduler()); if (error != 0) { OSCL_LEAVE(error); } } this->RemoveFromScheduler(); }
void init_cancel_test::test() { fprintf(fileoutput, "----- Start %s test, proxy %d. ----- \n", iTestName.get_cstr(), iUseProxy); fprintf(fileoutput, "\n** Test Number: %d. ** \n", iTestNum); int error = 0; scheduler = OsclExecScheduler::Current(); this->AddToScheduler(); if (start_async_test()) { OSCL_TRY(error, scheduler->StartScheduler()); if (error != 0) { OSCL_LEAVE(error); } } TestCompleted(); this->RemoveFromScheduler(); }
void video_preview_disconnect_test::test() { fprintf(fileoutput, "Start video preview disconnect test, proxy %d.\n", iUseProxy); int error = 0; scheduler = OsclExecScheduler::Current(); this->AddToScheduler(); if (start_async_test()) { OSCL_TRY(error, scheduler->StartScheduler()); if (error != 0) { OSCL_LEAVE(error); } } destroy_sink_source(); this->RemoveFromScheduler(); }
void init_rec_test::test() { fprintf(fileoutput, "Start init rec test, num runs %d, proxy %d.\n", iMaxRuns, iUseProxy); int error = 0; scheduler = OsclExecScheduler::Current(); this->AddToScheduler(); if (start_async_test()) { OSCL_TRY(error, scheduler->StartScheduler()); if (error != 0) { OSCL_LEAVE(error); } } destroy_sink_source(); this->RemoveFromScheduler(); }