os/persistentdata/traceservices/commsdebugutility/TE_commsdebugutility/src/step_022_01.cpp
Update contrib.
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 022.01
19 // Test system includes
20 #include "teststepcomsdbg.h"
21 #include "step_022_01.h"
24 #include <comms-infras/commsdebugutility.h>
28 * Function Name : CFloggerTest022_01
29 * Input parameters : None
30 * Output parameters : None
31 * Description : This is the constructor
35 CFloggerTest022_01::CFloggerTest022_01()
37 // store the name of this test case
38 SetTestStepName(_L("step_022_01"));
43 * Function Name :~ CFloggerTest022_01
44 * Input parameters : None
45 * Output parameters : None
46 * Description : This is the Destructor
50 CFloggerTest022_01::~CFloggerTest022_01()
56 * Function Name : doTestStepL
57 * Input parameters : None
58 * Output parameters : TVerdict
59 * Description : This function returns weather the test case 022_01 has
64 TVerdict CFloggerTest022_01::doTestStepL( )
66 INFO_PRINTF1(_L("Step 022.01 called "));
70 ptrSubSystem.Set(_L8("SubSystem")); //Test system name
71 ptrComponent.Set(_L8("Component")); //Test component name
73 RFileLogger theFlogger;
74 theFlogger.Connect(); //Connect to the file server
75 theFlogger.SetLogTags(ptrSubSystem, ptrComponent); //To set the tags
76 TRAPD(res, theFlogger.Close()); //Close the connection
79 SetTestStepResult(EPass);
82 SetTestStepResult(EFail);
85 return TestStepResult();