diff -r c1f20ce4abcf -r 3e88ff8f41d5 kerneltest/e32test/usbho/t_otgdi/src/testcase0679.cpp --- a/kerneltest/e32test/usbho/t_otgdi/src/testcase0679.cpp Tue Aug 31 16:34:26 2010 +0300 +++ b/kerneltest/e32test/usbho/t_otgdi/src/testcase0679.cpp Wed Sep 01 12:34:56 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of the License "Eclipse Public License v1.0" @@ -24,10 +24,6 @@ #include "testcaseroot.h" #include "b2bwatchers.h" #include "testcase0679.h" -#include "OstTraceDefinitions.h" -#ifdef OST_TRACE_COMPILER_IN_USE -#include "testcase0679Traces.h" -#endif #define _REPEATS (oOpenIterations*3) @@ -41,10 +37,7 @@ CTestCase0679* CTestCase0679::NewL(TBool aHost) { - if(gVerboseOutput) - { - OstTraceFunctionEntry0(CTESTCASE0679_NEWL); - } + LOG_FUNC CTestCase0679* self = new (ELeave) CTestCase0679(aHost); CleanupStack::PushL(self); self->ConstructL(); @@ -56,10 +49,7 @@ CTestCase0679::CTestCase0679(TBool aHost) : CTestCaseB2BRoot(KTestCaseId, aHost, iStatus) { - if(gVerboseOutput) - { - OstTraceFunctionEntry0(CTESTCASE0679_CTESTCASE0679); - } + LOG_FUNC } @@ -69,10 +59,7 @@ */ void CTestCase0679::ConstructL() { - if(gVerboseOutput) - { - OstTraceFunctionEntry0(CTESTCASE0679_CONSTRUCTL); - } + LOG_FUNC iDualRoleCase = ETrue; // another back-back @@ -82,10 +69,7 @@ CTestCase0679::~CTestCase0679() { - if(gVerboseOutput) - { - OstTraceFunctionEntry0(CTESTCASE0679_DCTESTCASE0679); - } + LOG_FUNC iCollector.DestroyObservers(); Cancel(); } @@ -93,10 +77,7 @@ void CTestCase0679::ExecuteTestCaseL() { - if(gVerboseOutput) - { - OstTraceFunctionEntry0(CTESTCASE0679_EXECUTETESTCASEL); - } + LOG_FUNC iCaseStep = EPreconditions; CActiveScheduler::Add(this); SelfComplete(); @@ -105,10 +86,7 @@ void CTestCase0679::DoCancel() { - if(gVerboseOutput) - { - OstTraceFunctionEntry0(CTESTCASE0679_DOCANCEL); - } + LOG_FUNC // cancel our timer iTimer.Cancel(); } @@ -117,10 +95,7 @@ // handle event completion void CTestCase0679::RunStepL() { - if(gVerboseOutput) - { - OstTraceFunctionEntry0(CTESTCASE0679_RUNSTEPL); - } + LOG_FUNC // Obtain the completion code for this CActive obj. TInt completionCode(iStatus.Int()); TBuf aDescription; @@ -203,7 +178,6 @@ case EDefaultRoles: { test.Printf(_L("Into EDefaultRoles step...\n")); - OstTrace0(TRACE_NORMAL, CTESTCASE0679_RUNSTEPL_DUP01, "Into EDefaultRoles step...\n"); LOG_STEPNAME(_L("EWaitEnumeration")); if (gTestRoleMaster) @@ -227,7 +201,6 @@ iCollector.AddStepTimeout(KTestCase0679ATimeout); // NB. In this test on the A-Device, we expect to timeout // so a timeout isn't treated as a failure test.Printf(_L("NOTE : Please observe test result on B-Device...\n")); - OstTrace0(TRACE_NORMAL, CTESTCASE0679_RUNSTEPL_DUP02, "NOTE : Please observe test result on B-Device...\n"); iCaseStep = EDropVBus; // This is the step the A-Device will go to // when the timer (set up in previous test) fires } @@ -239,7 +212,6 @@ case EBConfigured: // A B-Device only step! { test.Printf(_L("Into EBConfigured step...\n")); - OstTrace0(TRACE_NORMAL, CTESTCASE0679_RUNSTEPL_DUP03, "Into EBConfigured step...\n"); if (KTestCaseWatchdogTO == iStatus.Int()) { iCollector.DestroyObservers(); @@ -254,7 +226,6 @@ case EBSuspended: { test.Printf(_L("Into EBSuspended step...\n")); - OstTrace0(TRACE_NORMAL, CTESTCASE0679_RUNSTEPL_DUP04, "Into EBSuspended step...\n"); if (KTestCaseWatchdogTO == iStatus.Int()) { iCollector.DestroyObservers(); @@ -263,7 +234,6 @@ // issue HNP test.Printf(_L("Attempting a swap on a non-HNP enabled link...\n")); - OstTrace0(TRACE_NORMAL, CTESTCASE0679_RUNSTEPL_DUP05, "Attempting a swap on a non-HNP enabled link...\n"); iCollector.AddRequiredNotification(EWatcherMessage, RUsbOtgDriver::EMessageHnpNotEnabled); err = otgBusRequest(); // Request the host role @@ -271,7 +241,6 @@ if (KErrNone != err) { test.Printf(_L("BusRequest returned %d)"),err); - OstTrace1(TRACE_NORMAL, CTESTCASE0679_RUNSTEPL_DUP06, "BusRequest returned %d)",err); //DS Temp! return TestFailed(KErrAbort, _L("BusRequest() failed!")); } @@ -283,7 +252,6 @@ case EBErrorReceived: { test.Printf(_L("Into EBErrorReceived step...\n")); - OstTrace0(TRACE_NORMAL, CTESTCASE0679_RUNSTEPL_DUP07, "Into EBErrorReceived step...\n"); if (KTestCaseWatchdogTO == iStatus.Int()) { iCollector.DestroyObservers(); @@ -349,7 +317,6 @@ default: test.Printf(_L(" unknown test step")); - OstTrace0(TRACE_NORMAL, CTESTCASE0679_RUNSTEPL_DUP08, " unknown test step"); Cancel(); return (TestFailed(KErrCorrupt, _L(" unknown test step"))); }