os/persistentdata/traceservices/commsdebugutility/TE_commsdebugutility/src/step_021_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 021.01
19 // Test system includes
20 #include "teststepcomsdbg.h"
21 #include "step_021_01.h"
24 #include <comms-infras/commsdebugutility.h>
28 * Function Name : CFloggerTest021_01
29 * Input parameters : None
30 * Output parameters : None
31 * Description : This is the constructor
35 CFloggerTest021_01::CFloggerTest021_01()
37 // store the name of this test case
38 SetTestStepName(_L("step_021_01"));
43 * Function Name :~ CFloggerTest021_01
44 * Input parameters : None
45 * Output parameters : None
46 * Description : This is the Destructor
50 CFloggerTest021_01::~CFloggerTest021_01()
56 * Function Name : doTestStepL
57 * Input parameters : None
58 * Output parameters : TVerdict
59 * Description : This function returns weather the test case 021_01 has
64 TVerdict CFloggerTest021_01::doTestStepL( )
66 INFO_PRINTF1(_L("Step 021.01 called "));
68 RFileLogger theFlogger;
71 ptrSubSystem.Set(_L8("SubSystem")); //Test system name
72 ptrComponent.Set(_L8("Component")); //Test component name
75 theFlogger.SetLogTags(ptrSubSystem, ptrComponent); //To set the tags
77 TBool res = theFlogger.LogValid();
79 SetTestStepResult(EPass);
82 SetTestStepResult(EFail);
87 return TestStepResult();