localisation/apparchitecture/tef/T_OOMStep.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     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_OOM_STEP_H__)
       
    24 #define __T_OOM_STEP_H__
       
    25 
       
    26 #include "ApparcTestServer.h"
       
    27 
       
    28 //!  A CT_OOMStep test class. 
       
    29 
       
    30 /**  Performs the Out of Memory Tests. */
       
    31 
       
    32 class CT_OOMStep : public CTestStep
       
    33 	{
       
    34 public:
       
    35 	CT_OOMStep();
       
    36 	~CT_OOMStep();
       
    37 	virtual TVerdict doTestStepPreambleL();
       
    38 	virtual TVerdict doTestStepPostambleL();
       
    39 	virtual TVerdict doTestStepL();
       
    40 	void DoStepTests();
       
    41 
       
    42 //private:
       
    43 	CApaDocument* CreateTestDocL(CApaProcess* aProcess);
       
    44 	void CreateTestDocFileL();
       
    45 	void TestOOMConstructionL();
       
    46 	void TestDoorOOML();
       
    47 	void DoTestsInCallBackL();
       
    48 	void setup();
       
    49 	
       
    50 private:
       
    51 	RFs iFs;
       
    52 	};
       
    53 
       
    54 class CT_OOMStepCallBack : public CBase
       
    55 	{
       
    56 public:
       
    57 	CT_OOMStepCallBack(CT_OOMStep* aTestStep);
       
    58 	~CT_OOMStepCallBack();
       
    59 	static TInt CallBack(TAny* aThis);
       
    60 	CT_OOMStep* iTestStep;
       
    61 	};
       
    62 
       
    63 
       
    64 
       
    65 _LIT(KT_OOMStep,"T_OOM");
       
    66 
       
    67 #endif