persistentstorage/centralrepository/test/testexecute/performance/src/TE_PerfTestCacheDisabledStep.cpp
branchRCL_3
changeset 24 cc28652e0254
parent 0 08ec8eefde2f
equal deleted inserted replaced
23:26645d81f48d 24:cc28652e0254
       
     1 // Copyright (c) 2005-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 #include <centralrepository.h>
       
    17 #include "t_cenrep_helper.h"
       
    18 #include "srvreqs.h"
       
    19 #include "TE_PerfTestCacheDisabledStep.h"
       
    20 
       
    21 //---------------------------------
       
    22 // class CPerfTestCacheDisabledStep
       
    23 //---------------------------------
       
    24 
       
    25 CPerfTestCacheDisabledStep::CPerfTestCacheDisabledStep() 
       
    26 	{
       
    27 	SetTestStepName(KPerfTestCacheDisabledStep);
       
    28 	}
       
    29 
       
    30 // doTestStepL
       
    31 // Implement the pure virtual function.
       
    32 // This accesses a small and a large repository various times when cache is 
       
    33 // enabled and disabled.
       
    34 TVerdict CPerfTestCacheDisabledStep::doTestStepL()
       
    35 	{
       
    36 #ifndef __CENTREP_SERVER_CACHETEST__
       
    37 	return EPass;
       
    38 #else	
       
    39     SetTestStepResult(EFail);	
       
    40 
       
    41 	TInt r;
       
    42 	
       
    43 	r = SetGetParameters(TIpcArgs(EDisableCache));
       
    44 	TESTL(r==KErrNone);
       
    45 	
       
    46 	CommonTestStepL();
       
    47 	
       
    48 	return TestStepResult();	
       
    49 #endif	
       
    50 	}
       
    51