authenticationservices/authenticationserver/test/tAuthSvr/src/step_removedbs.cpp
changeset 102 deec7e509f66
parent 94 0e6c5a9328b5
child 108 ca9a0fc2f082
equal deleted inserted replaced
94:0e6c5a9328b5 102:deec7e509f66
     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 the License "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 * step_retrainplugin.cpp
       
    16 * CTestStep derived implementation
       
    17 *
       
    18 */
       
    19 
       
    20  
       
    21 #include "tAuthSvrStep.h"
       
    22 
       
    23 #include "authserver/authclient.h"
       
    24 #include "authserver/authmgrclient.h"
       
    25 
       
    26 using namespace AuthServer;
       
    27 
       
    28 //====================================================================================================
       
    29 
       
    30 CTRemoveDbs::CTRemoveDbs()
       
    31 /**
       
    32  * Constructor
       
    33  */
       
    34 	{
       
    35 	// Call base class method to set up the human readable name for logging
       
    36 	SetTestStepName(KTRemoveDbs);
       
    37 	}
       
    38 
       
    39 CTRemoveDbs::~CTRemoveDbs()
       
    40 /**
       
    41  * Destructor
       
    42  */
       
    43 	{}
       
    44 	
       
    45 TVerdict CTRemoveDbs::doTestStepPreambleL()
       
    46 /**
       
    47  * @return - TVerdict code
       
    48  * Override of base class virtual
       
    49  */
       
    50 	{
       
    51 	CTAuthSvrStepBase::doTestStepPreambleL();
       
    52 	
       
    53 	//SetTestStepResult(EPass);
       
    54 	return TestStepResult();
       
    55 	}
       
    56 
       
    57 TVerdict CTRemoveDbs::doTestStepL()
       
    58 /**
       
    59  * @return - TVerdict code
       
    60  * Override of base class pure virtual
       
    61  * 
       
    62  */
       
    63 	{	
       
    64 	//If any test step leaves or panics, the test step thread won't exit, further calls are made.
       
    65 	// but the html log is updatead, so that subsequent failures could be traced here if necessary. 
       
    66 	if (TestStepResult() != EPass)
       
    67 		{
       
    68 		INFO_PRINTF1(_L("There was an error in a previous test step"));
       
    69 		//return TestStepResult();
       
    70 		}
       
    71 
       
    72 __UHEAP_MARK;		// Check for memory leaks
       
    73 
       
    74 	SetTestStepResult(EPass);
       
    75 	RemoveExistingDbL();
       
    76 	
       
    77 __UHEAP_MARKEND;
       
    78 	return TestStepResult();
       
    79 	}
       
    80 
       
    81 
       
    82 TVerdict CTRemoveDbs::doTestStepPostambleL()
       
    83 /**
       
    84  * @return - TVerdict code
       
    85  * Override of base class virtual
       
    86  */
       
    87 	{
       
    88 	//Call the parent postamble, releasing the file handle, etc
       
    89 	CTStepActSch::doTestStepPostambleL();
       
    90 	//INFO_PRINTF1(_L("Test Step Postamble"));
       
    91 	return TestStepResult();
       
    92 	}