os/persistentdata/traceservices/tracefw/ulogger/unit_test/te-createconfig/te_createconfigemptystep.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2006-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 //
    15 
    16 /**
    17  @file te_createconfigemptystep.cpp
    18 */
    19  
    20 #include "te_createconfigemptystep.h"
    21 #include "te_clearconfig.h"
    22 
    23 using namespace Ulogger;
    24 
    25 CCreateConfigEmptyTestStep::~CCreateConfigEmptyTestStep()
    26 /**
    27  * Destructor
    28  */
    29 	{
    30 	}
    31 
    32 CCreateConfigEmptyTestStep::CCreateConfigEmptyTestStep()
    33 /**
    34  * Constructor
    35  */
    36 	{
    37 	// **MUST** call SetTestStepName in the constructor as the controlling
    38 	// framework uses the test step name immediately following construction to set
    39 	// up the step's unique logging ID.
    40 	SetTestStepName(KCreateConfigEmptyStep);
    41 	}
    42  
    43  
    44 /**
    45  * Override of base class virtual
    46  * @return - TVerdict code
    47  * 
    48  */
    49 TVerdict CCreateConfigEmptyTestStep::doTestStepPreambleL()
    50 	{
    51 	return TestStepResult();
    52 	}
    53 
    54 /**
    55  * Override of base class virtual
    56  * @return - TVerdict code
    57  */
    58 TVerdict CCreateConfigEmptyTestStep::doTestStepPostambleL()
    59 	{
    60 	return TestStepResult();	
    61 	}
    62 	
    63 /**
    64  * Test 
    65  * @return - TVerdict code
    66  */
    67 	
    68 TVerdict CCreateConfigEmptyTestStep::doTestStepL()
    69 	{	
    70 	
    71 	
    72 	RULogger logger;
    73 	  
    74 	logger.Connect();
    75 	CClearConfig configIni;
    76 	
    77 	configIni.ClearL(logger);
    78 
    79 	logger.SetSecondaryFilteringEnabled(EFalse);	
    80 
    81 	SetTestStepResult(EPass);
    82 	
    83 	return TestStepResult();	
    84 	
    85 	}