localisation/apparchitecture/tef/T_ProStep.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_PRO_STEP_H__)
       
    24 #define __T_PRO_STEP_H__
       
    25 
       
    26 _LIT(KT_ProStep,"T_Pro");
       
    27 
       
    28 #include "ApparcTestServer.h"
       
    29 
       
    30 #include <apaid.h>
       
    31 #include "..\apparc\apadll.h"
       
    32 #include <apgaplst.h>
       
    33 #include <apgicnfl.h>
       
    34 #include <apgdoor.h>
       
    35 #include <apfrec.h>
       
    36 #include <apfctlf.h>
       
    37 #include <apgctl.h>
       
    38 #include <apgaplst.h>
       
    39 #include <apaflrec.h>
       
    40 #include <apgcli.h>
       
    41 #include <apacmdln.h>
       
    42 
       
    43 //!  A CT_ProStep test class. 
       
    44 
       
    45 /**  Tests Application Apparc base classes and utility functions.\n */
       
    46 
       
    47 class CT_ProStep : public CTestStep
       
    48 	{
       
    49 public:
       
    50 	CT_ProStep();
       
    51 	~CT_ProStep();
       
    52 	virtual TVerdict doTestStepPreambleL();
       
    53 	virtual TVerdict doTestStepPostambleL();
       
    54 	virtual TVerdict doTestStepL();
       
    55 	void DoStepTests();
       
    56 //private:
       
    57 	void DoStepTestsInCallbackL();
       
    58 	void testAppIdentifierL();
       
    59 	void doTestGenerateFileName();
       
    60 	void testDocCreationL();
       
    61 	void testDocCreation1L();
       
    62 	CApaDocument* testDocCreation3L();
       
    63 	void testDocCreation2L();
       
    64 	void testDocCreation4L(CApaDocument* aDoc);
       
    65 	void testEmbeddingL();
       
    66 	void testIniFilesL();
       
    67 	void testControlsL();
       
    68 	void setup();
       
    69 	TInt ControlIndexInList(CApaSystemControlList* aList, TBool aIsNewPath);
       
    70 	void testControls1L();
       
    71 	void testControls2L();
       
    72 	void testControls3L();
       
    73 	void DoAppListInvalidTestL(RApaLsSession& aLs);
       
    74 	void MainDocFileNameTestsL();
       
    75 	void testMainDocFileName1L();
       
    76 	void testMainDocFileName2L();
       
    77 	void testMainDocFileName3L();
       
    78 	void testReadStreamL();
       
    79     void testPanicForControlListL();
       
    80     void ClosePanicWindowL();
       
    81         
       
    82 
       
    83 private:
       
    84 	RFs iFs;
       
    85 	CApaProcess* iProcess;
       
    86 	CApaSystemControlList* iControlList;
       
    87 	CApaSystemControl* iControl;
       
    88 
       
    89 	TInt iControlCount1;
       
    90 	TInt iControlCount2;
       
    91 	TInt iControlCount3;
       
    92 
       
    93 	TInt iAppListCount;
       
    94 	};
       
    95 
       
    96 
       
    97 class CT_ProStepCallBack : public CBase
       
    98 	{
       
    99 public:
       
   100 	CT_ProStepCallBack(CT_ProStep* aTestStep);
       
   101 	~CT_ProStepCallBack();
       
   102 	static TInt CallBack(TAny* /*aThis*/);
       
   103 	CT_ProStep* iTestStep;
       
   104 
       
   105 private:
       
   106 	};
       
   107 
       
   108 #endif