void CNetConTest0102::SelectComplete(TInt aError) { if(aError == KErrBadPower) CompleteTest(MNetConTest::EPassed); else CompleteTest(MNetConTest::EFailed); }
void CNetConTest0101::SelectComplete(const TDesC& aName) { _LIT(KAgentName, "An Agent Name"); if(aName == KAgentName()) CompleteTest(MNetConTest::EPassed); else CompleteTest(MNetConTest::EFailed); }
// --------------------------------------------------------- // CPosPSYClearPositionDataTest::CompleteClearPositionDataTest // // (other items were commented in a header). // --------------------------------------------------------- // void CPosPSYClearPositionDataTest::CompleteClearPositionDataTest( TInt aCompletionCode) { delete iPosInfo; iPosInfo = NULL; CompleteTest(aCompletionCode); }
// --------------------------------------------------------- // CPosPSYClearPositionDataTest::CancelTest // // (other items were commented in a header). // --------------------------------------------------------- // void CPosPSYClearPositionDataTest::CancelTest() { iTestStatus = KErrCancel; iRequester->Cancel(); delete iPosInfo; iPosInfo = NULL; CompleteTest(KErrCancel); }
void pv_mediainput_async_test_delete::HandleInformationalEvent(const PVAsyncInformationalEvent& aEvent) { PVLOGGER_LOGMSG(PVLOGMSG_INST_REL, iLogger, PVLOGMSG_STACK_TRACE, (0, "pv_mediainput_async_test_delete::HandleInformationalEvent")); OsclAny* eventData = NULL; switch (aEvent.GetEventType()) { case PVMF_COMPOSER_MAXFILESIZE_REACHED: case PVMF_COMPOSER_MAXDURATION_REACHED: PVLOGGER_LOGMSG(PVLOGMSG_INST_LLDBG, iLogger, PVLOGMSG_DEBUG, (0, "pv_mediainput_async_test_delete::HandleNodeInformationalEvent: Max file size reached")); Cancel(); PVPATB_TEST_IS_TRUE(true); CompleteTest(); break; case PVMF_COMPOSER_DURATION_PROGRESS: aEvent.GetEventData(eventData); PVLOGGER_LOGMSG(PVLOGMSG_INST_LLDBG, iLogger, PVLOGMSG_DEBUG, (0, "pv_mediainput_async_test_delete::HandleNodeInformationalEvent: Duration progress: %d ms", (int32)eventData)); break; case PVMF_COMPOSER_FILESIZE_PROGRESS: aEvent.GetEventData(eventData); PVLOGGER_LOGMSG(PVLOGMSG_INST_LLDBG, iLogger, PVLOGMSG_DEBUG, (0, "pv_mediainput_async_test_delete::HandleNodeInformationalEvent: File size progress: %d bytes", (int32)eventData)); break; case PVMF_COMPOSER_EOS_REACHED: //Engine already stopped at EOS so send reset command. iState = PVAE_CMD_RESET; //cancel recording timeout scheduled for timer object. Cancel(); RunIfNotReady(); break; default: break; } }
void CNetConTest0102::SelectComplete(const TDesC&) { CompleteTest(MNetConTest::EFailed); }
void CNetConTest0101::SelectComplete(TInt) { CompleteTest(MNetConTest::EFailed); }
int _tmain(int /*argc*/, _TCHAR** /*argv*/) { CompleteTest(); return 0; }