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 001.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_001_01.h" sl@0: sl@0: #include sl@0: sl@0: sl@0: /** sl@0: * Function Name : CFloggerTest001_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: CFloggerTest001_01::CFloggerTest001_01() sl@0: { sl@0: // store the name of this test case sl@0: SetTestStepName(_L("step_001_01")); sl@0: } sl@0: sl@0: sl@0: /** sl@0: * Function Name :~ CFloggerTest001_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: CFloggerTest001_01::~CFloggerTest001_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 001_01 has sl@0: * passed or failed sl@0: sl@0: */ sl@0: sl@0: sl@0: TVerdict CFloggerTest001_01::doTestStepL( ) sl@0: { sl@0: sl@0: INFO_PRINTF1(_L("Step 001.01 called ")); sl@0: RFileLogger theFlogger; sl@0: TVersion LogVersion = theFlogger.Version(); sl@0: if ( LogVersion.iMinor == 0 && LogVersion.iMajor == 2 && LogVersion.iBuild == 0 ) // Check the version sl@0: SetTestStepResult(EPass); sl@0: else sl@0: SetTestStepResult(EFail); sl@0: sl@0: // we haven't opened connection, but calling Close should still work and not sl@0: // cause a panic since it should just be ignored. sl@0: theFlogger.Close(); sl@0: sl@0: return TestStepResult(); sl@0: } sl@0: