|
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 "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // t_prostep.h |
|
15 // |
|
16 |
|
17 /** |
|
18 @file t_prostep.h |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #if (!defined __T_PRO_STEP_H__) |
|
23 #define __T_PRO_STEP_H__ |
|
24 |
|
25 _LIT(KT_ProStep,"T_Pro"); |
|
26 |
|
27 #include "apparctestserver.h" |
|
28 |
|
29 #include <apaid.h> |
|
30 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
31 #include <apaidpartner.h> |
|
32 #include <apgicnflpartner.h> |
|
33 #include <apgctllist.h> |
|
34 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS |
|
35 #include "../apparc/apadll.h" |
|
36 #include <apgaplst.h> |
|
37 #include <apgicnfl.h> |
|
38 #include <apgdoor.h> |
|
39 #include <apfrec.h> |
|
40 #include <apfctlf.h> |
|
41 #include <apgctl.h> |
|
42 #include <apgaplst.h> |
|
43 #include <apaflrec.h> |
|
44 #include <apgcli.h> |
|
45 #include <apacmdln.h> |
|
46 |
|
47 //! A CT_ProStep test class. |
|
48 |
|
49 /** Tests Application Apparc base classes and utility functions.\n */ |
|
50 |
|
51 class CT_ProStep : public CTestStep |
|
52 { |
|
53 public: |
|
54 CT_ProStep(); |
|
55 ~CT_ProStep(); |
|
56 virtual TVerdict doTestStepPreambleL(); |
|
57 virtual TVerdict doTestStepPostambleL(); |
|
58 virtual TVerdict doTestStepL(); |
|
59 void DoStepTestsL(); |
|
60 //private: |
|
61 void DoStepTestsInCallbackL(); |
|
62 void testAppIdentifierL(); |
|
63 void doTestGenerateFileName(); |
|
64 void testDocCreationL(); |
|
65 void testDocCreation1L(); |
|
66 CApaDocument* testDocCreation3L(); |
|
67 void testDocCreation2L(); |
|
68 void testDocCreation4L(CApaDocument* aDoc); |
|
69 void testEmbeddingL(); |
|
70 void testIniFilesL(); |
|
71 void testControlsL(); |
|
72 void setup(); |
|
73 TInt ControlIndexInList(CApaSystemControlList* aList, TBool aIsNewPath); |
|
74 void testControls1L(); |
|
75 void testControls2L(); |
|
76 void testControls3L(); |
|
77 void DoAppListInvalidTestL(RApaLsSession& aLs); |
|
78 void MainDocFileNameTestsL(); |
|
79 void testMainDocFileName1L(); |
|
80 void testMainDocFileName2L(); |
|
81 void testMainDocFileName3L(); |
|
82 void testReadStreamL(); |
|
83 void testPanicForControlListL(); |
|
84 void ClosePanicWindowL(); |
|
85 |
|
86 |
|
87 private: |
|
88 RFs iFs; |
|
89 CApaProcess* iProcess; |
|
90 CApaSystemControlList* iControlList; |
|
91 CApaSystemControl* iControl; |
|
92 |
|
93 TInt iControlCount1; |
|
94 TInt iControlCount2; |
|
95 TInt iControlCount3; |
|
96 |
|
97 TInt iAppListCount; |
|
98 }; |
|
99 |
|
100 |
|
101 class CT_ProStepCallBack : public CBase |
|
102 { |
|
103 public: |
|
104 CT_ProStepCallBack(CT_ProStep* aTestStep); |
|
105 ~CT_ProStepCallBack(); |
|
106 static TInt CallBackL(TAny* /*aThis*/); |
|
107 CT_ProStep* iTestStep; |
|
108 |
|
109 private: |
|
110 }; |
|
111 |
|
112 #endif |
|
113 |
|
114 |