os/persistentdata/traceservices/commsdebugutility/TE_commsdebugutility/src/step_001_01.cpp
First public contribution.
1 // Copyright (c) 2003-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.
14 // This contains Flogger Unit Test Case 001.01
19 // Test system includes
20 #include "teststepcomsdbg.h"
21 #include "step_001_01.h"
23 #include <comms-infras/commsdebugutility.h>
27 * Function Name : CFloggerTest001_01
28 * Input parameters : None
29 * Output parameters : None
30 * Description : This is the constructor
34 CFloggerTest001_01::CFloggerTest001_01()
36 // store the name of this test case
37 SetTestStepName(_L("step_001_01"));
42 * Function Name :~ CFloggerTest001_01
43 * Input parameters : None
44 * Output parameters : None
45 * Description : This is the Destructor
49 CFloggerTest001_01::~CFloggerTest001_01()
55 * Function Name : doTestStepL
56 * Input parameters : None
57 * Output parameters : TVerdict
58 * Description : This function returns weather the test case 001_01 has
64 TVerdict CFloggerTest001_01::doTestStepL( )
67 INFO_PRINTF1(_L("Step 001.01 called "));
68 RFileLogger theFlogger;
69 TVersion LogVersion = theFlogger.Version();
70 if ( LogVersion.iMinor == 0 && LogVersion.iMajor == 2 && LogVersion.iBuild == 0 ) // Check the version
71 SetTestStepResult(EPass);
73 SetTestStepResult(EFail);
75 // we haven't opened connection, but calling Close should still work and not
76 // cause a panic since it should just be ignored.
79 return TestStepResult();