os/persistentdata/traceservices/commsdebugutility/TE_commsdebugutility/src/step_001_01.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // This contains Flogger Unit Test Case 001.01
    15 
    16 // EPOC includes
    17 #include <e32base.h>
    18 
    19 // Test system includes
    20 #include "teststepcomsdbg.h"
    21 #include "step_001_01.h"
    22 
    23 #include <comms-infras/commsdebugutility.h>
    24 
    25 
    26 /**
    27 * Function  Name	: CFloggerTest001_01
    28 * Input parameters	: None
    29 * Output parameters	: None
    30 * Description		: This is the constructor
    31 */
    32 
    33 
    34 CFloggerTest001_01::CFloggerTest001_01()
    35 	{
    36 	// store the name of this test case
    37 	SetTestStepName(_L("step_001_01"));
    38 	}
    39 
    40 
    41 /**
    42 * Function  Name	:~ CFloggerTest001_01
    43 * Input parameters	: None
    44 * Output parameters : None
    45 * Description		: This is the Destructor
    46 */
    47 
    48 
    49 CFloggerTest001_01::~CFloggerTest001_01()
    50 	{
    51 	}
    52 
    53 
    54 /**
    55 * Function  Name	: doTestStepL
    56 * Input parameters	: None
    57 * Output parameters : TVerdict 
    58 * Description		: This function returns weather the test case 001_01 has 
    59 *						passed or failed
    60 
    61 */
    62 
    63 
    64 TVerdict CFloggerTest001_01::doTestStepL( )
    65 	{
    66 
    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);
    72 	else
    73 		SetTestStepResult(EFail);
    74 
    75 	// we haven't opened connection, but calling Close should still work and not
    76 	// cause a panic since it should just be ignored.
    77 	theFlogger.Close();
    78 
    79 	return TestStepResult();
    80 	}
    81