common/tools/ats/smoketest/localisation/apparchitecture/tef/T_MdrStep.h
changeset 793 0c32c669a39d
child 872 17498133d9ad
equal deleted inserted replaced
792:893b85cda81b 793:0c32c669a39d
       
     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 the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent - Internal Symbian test code  
       
    21 */
       
    22 
       
    23 #if (!defined __T_MDR_STEP_H__)
       
    24 #define __T_MDR_STEP_H__
       
    25 
       
    26 #include "ApparcTestServer.h"
       
    27 
       
    28 #include <apamdr.h>
       
    29 #include <apgdoor.h>
       
    30 
       
    31 class TTestModelHeaderFactory : public MApaModelHeaderFactory
       
    32 	{
       
    33 public:
       
    34 	CApaModelHeader* NewHeaderL(const CStreamStore& aStore,const CStreamDictionary& aDict,const TApaAppIdentifier& aAppId)const;
       
    35 	};
       
    36 
       
    37 class CTestModelHeader : public CApaModelHeader
       
    38 	{
       
    39 public:
       
    40 	void RestoreL(const CStreamStore& aStore,const CStreamDictionary& aDict);
       
    41 	void StoreL(CStreamStore& aStore,CStreamDictionary& aDict) const;
       
    42 	void DetachFromStoreL(CPicture::TDetach aDetach);
       
    43 	TApaAppIdentifier AppId()const;
       
    44 public:
       
    45 	TInt iData;
       
    46 	};
       
    47 	
       
    48 //!  A CT-MdrStep test class. 
       
    49 
       
    50 /**  Class tests CApaDoor and CApaModelDoor Apis. */
       
    51 
       
    52 class CT_MdrStep:public CTestStep
       
    53 	{
       
    54 public:
       
    55 	CT_MdrStep();
       
    56 	~CT_MdrStep();
       
    57 	virtual TVerdict doTestStepPreambleL();
       
    58 	virtual TVerdict doTestStepPostambleL();
       
    59 	virtual TVerdict doTestStepL();
       
    60 	void testModelDoorL();
       
    61 	void testConversionL();
       
    62 	void testMiscellaneousL();
       
    63 	void DoTestsInScheldulerLoopL();
       
    64 	void DoStepTests();
       
    65 
       
    66 private:
       
    67 	RFs iFs;
       
    68 	CApaProcess* iProcess;
       
    69 	};
       
    70 
       
    71 class CT_MdrTestCallBackWrapper : public CBase
       
    72 	{
       
    73 public:
       
    74 	CT_MdrTestCallBackWrapper(CT_MdrStep* aTestStep);
       
    75 	~CT_MdrTestCallBackWrapper();
       
    76 	static TInt CallBack(TAny* aPtr);
       
    77 private:
       
    78 	CT_MdrStep* iTestStep;
       
    79 	};
       
    80 
       
    81 _LIT(KT_MdrStep,"T_Mdr");
       
    82 #endif