os/persistentdata/traceservices/tracefw/ulogger/unit_test/te-server/uloggerservertest5step.cpp
Update contrib.
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
17 @file UloggerServerTest5Step.cpp
20 #include "uloggerservertest5step.h"
21 #include "te_uloggerservertestsuitedefs.h"
22 #include "uloggerdatatypes.h"
27 CUloggerServerTest5Step::~CUloggerServerTest5Step()
35 CUloggerServerTest5Step::CUloggerServerTest5Step()
40 SetTestStepName(KUloggerServerTest5Step);
43 TVerdict CUloggerServerTest5Step::doTestStepPreambleL()
45 * @return - TVerdict code
46 * Override of base class virtual
49 INFO_PRINTF1(_L("****This is unit test for CUloggerChannelSettings class****"));
50 iScheduler = new (ELeave) CActiveScheduler();
51 CActiveScheduler::Install(iScheduler);
54 SetTestStepResult(EPass);
55 return TestStepResult();
59 TVerdict CUloggerServerTest5Step::doTestStepL()
61 * @return - TVerdict code
62 * Override of base class pure virtual
63 * Our implementation only gets called if the base class doTestStepPreambleL() did
64 * not leave. That being the case, the current test result value will be EPass.
68 if (TestStepResult()==EPass)
70 iErrors += Test1L(); //CControlFramework::StartReading + StopReading
74 res.AppendFormat(_L("%d errors"), iErrors);
75 INFO_PRINTF1(_L("****Results****"));
78 SetTestStepResult(EPass);
80 SetTestStepResult(EFail);
83 return TestStepResult();
88 TVerdict CUloggerServerTest5Step::doTestStepPostambleL()
90 * @return - TVerdict code
91 * Override of base class virtual
97 return TestStepResult();
103 TInt CUloggerServerTest5Step::Test1L()