authenticationservices/authenticationserver/test/tauthplugins/tauthpluginsstep.h
changeset 29 ece3df019add
equal deleted inserted replaced
19:cd501b96611d 29:ece3df019add
       
     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 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TAUTHPLUGINSSTEP_H
       
    20 #define TAUTHPLUGINSSTEP_H
       
    21 
       
    22 #include <test/testexecutestepbase.h>
       
    23 #include "tauthpluginsserver.h"
       
    24 
       
    25 _LIT(KTStepInterface, "INTERFACE");
       
    26 
       
    27 class CTAuthPluginsStepBase : public CTestStep
       
    28 	{
       
    29 protected:
       
    30 	CTAuthPluginsStepBase() {}
       
    31 	~CTAuthPluginsStepBase() {}
       
    32 	virtual TVerdict doTestStepPreambleL()
       
    33 	{
       
    34 	iFs.Connect();
       
    35  	return TestStepResult();
       
    36 	}
       
    37 	virtual TVerdict doTestStepPostambleL()
       
    38 	{
       
    39 	iFs.Close();
       
    40 	return TestStepResult();
       
    41 	}
       
    42 	
       
    43 protected:
       
    44 	RFs		iFs;
       
    45 	};
       
    46 
       
    47 
       
    48 class CTStepInterface : public CTAuthPluginsStepBase
       
    49 	{
       
    50 public:
       
    51 	CTStepInterface();
       
    52 	~CTStepInterface();
       
    53 	virtual TVerdict doTestStepL();
       
    54 	virtual TVerdict doTestStepPreambleL();
       
    55 	virtual TVerdict doTestStepPostambleL();
       
    56 	
       
    57 private:
       
    58 	CActiveScheduler* iActiveScheduler;
       
    59 	};
       
    60 
       
    61 #endif	/* TAUTHPLUGINSSTEP_H */