testexecmdw/tef/tef/test/regressiontest/concurrenttest/src/te_regloopstep.cpp
branchRCL_3
changeset 3 9397a16b6eb8
parent 1 6edeef394eb7
equal deleted inserted replaced
1:6edeef394eb7 3:9397a16b6eb8
     1 /*
       
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 * Example CTestStep derived implementation
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 /**
       
    22  @file te_regconcurrentteststep2.cpp
       
    23  @internalTechnology
       
    24 */
       
    25 #include "te_regloopstep.h"
       
    26 #include "te_regconcurrenttestsuitedefs.h"
       
    27 
       
    28 CTe_RegLoopStep::~CTe_RegLoopStep()
       
    29 /**
       
    30  * Destructor
       
    31  */
       
    32 	{
       
    33 	
       
    34 	}
       
    35 
       
    36 CTe_RegLoopStep::CTe_RegLoopStep()
       
    37 /**
       
    38  * Constructor
       
    39  */
       
    40 	{
       
    41 	// **MUST** call SetTestStepName in the constructor as the controlling
       
    42 	// framework uses the test step name immediately following construction to set
       
    43 	// up the step's unique logging ID.
       
    44 	SetTestStepName(KTe_RegLoopStep);
       
    45 	}
       
    46 
       
    47 TVerdict CTe_RegLoopStep::doTestStepL()
       
    48 /**
       
    49  * @return - TVerdict code
       
    50  * Override of base class pure virtual
       
    51  * Our implementation only gets called if the base class doTestStepPreambleL() did
       
    52  * not leave. That being the case, the current test result value will be EPass.
       
    53  */
       
    54 	{
       
    55 	INFO_PRINTF3(_L("Running %S in server %S, loop 1000000 times..."), &ConfigSection(), &GetServerName());
       
    56 	for (TInt i=0; i<1000000; i++)
       
    57 		{
       
    58 		}
       
    59 	return TestStepResult();
       
    60 	}