sl@0: // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // This contains Flogger Unit Test Case 021.01 sl@0: sl@0: // EPOC includes sl@0: #include sl@0: sl@0: // Test system includes sl@0: #include "teststepcomsdbg.h" sl@0: #include "step_021_01.h" sl@0: sl@0: sl@0: #include sl@0: sl@0: sl@0: /** sl@0: * Function Name : CFloggerTest021_01 sl@0: * Input parameters : None sl@0: * Output parameters : None sl@0: * Description : This is the constructor sl@0: */ sl@0: sl@0: sl@0: CFloggerTest021_01::CFloggerTest021_01() sl@0: { sl@0: // store the name of this test case sl@0: SetTestStepName(_L("step_021_01")); sl@0: } sl@0: sl@0: sl@0: /** sl@0: * Function Name :~ CFloggerTest021_01 sl@0: * Input parameters : None sl@0: * Output parameters : None sl@0: * Description : This is the Destructor sl@0: */ sl@0: sl@0: sl@0: CFloggerTest021_01::~CFloggerTest021_01() sl@0: { sl@0: } sl@0: sl@0: sl@0: /** sl@0: * Function Name : doTestStepL sl@0: * Input parameters : None sl@0: * Output parameters : TVerdict sl@0: * Description : This function returns weather the test case 021_01 has sl@0: * passed or failed sl@0: sl@0: */ sl@0: sl@0: TVerdict CFloggerTest021_01::doTestStepL( ) sl@0: { sl@0: INFO_PRINTF1(_L("Step 021.01 called ")); sl@0: sl@0: RFileLogger theFlogger; sl@0: TPtrC8 ptrSubSystem; sl@0: TPtrC8 ptrComponent; sl@0: ptrSubSystem.Set(_L8("SubSystem")); //Test system name sl@0: ptrComponent.Set(_L8("Component")); //Test component name sl@0: sl@0: theFlogger.Connect(); sl@0: theFlogger.SetLogTags(ptrSubSystem, ptrComponent); //To set the tags sl@0: sl@0: TBool res = theFlogger.LogValid(); sl@0: if (res == 1) sl@0: SetTestStepResult(EPass); sl@0: sl@0: else sl@0: SetTestStepResult(EFail); sl@0: sl@0: sl@0: theFlogger.Close(); sl@0: sl@0: return TestStepResult(); sl@0: } sl@0: