|
1 /* |
|
2 * Copyright (c) 2002 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 "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: TestPnPUtil.h |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TESTPNPUTIL_H |
|
19 #define TESTPNPUTIL_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <StifLogger.h> |
|
23 #include <TestScripterInternal.h> |
|
24 #include <StifTestModule.h> |
|
25 #include <TestclassAssert.h> |
|
26 #include <PnpUtilImpl.h> |
|
27 #include <PnpProvUtil.h> |
|
28 #include <e32base.h> |
|
29 #include <apmstd.h> |
|
30 |
|
31 // CONSTANTS |
|
32 |
|
33 // MACROS |
|
34 #define TEST_CLASS_VERSION_MAJOR 0 |
|
35 #define TEST_CLASS_VERSION_MINOR 0 |
|
36 #define TEST_CLASS_VERSION_BUILD 0 |
|
37 |
|
38 // Logging path |
|
39 _LIT( KTestPnpUtilLogPath, "\\logs\\testframework\\TestPnpUtil\\" ); |
|
40 // Log file |
|
41 _LIT( KTestPnpUtilLogFile, "TestPnpUtil.txt" ); |
|
42 _LIT( KTestPnpUtilLogFileWithTitle, "TestPnpUtil_[%S].txt" ); |
|
43 |
|
44 // FUNCTION PROTOTYPES |
|
45 |
|
46 |
|
47 // FORWARD DECLARATIONS |
|
48 class CTestPnpUtil; |
|
49 class TDataType; |
|
50 |
|
51 // CLASS DECLARATION |
|
52 |
|
53 /** |
|
54 * CTestPnpUtil test class for STIF Test Framework TestScripter. |
|
55 * other_description_lines |
|
56 * |
|
57 * @lib ?library |
|
58 * @since ?Series60_version |
|
59 */ |
|
60 NONSHARABLE_CLASS(CTestPnpUtil) :public CScriptBase |
|
61 { |
|
62 public: // Constructors and destructor |
|
63 |
|
64 /** |
|
65 * Two-phased constructor. |
|
66 */ |
|
67 static CTestPnpUtil* NewL( CTestModuleIf& aTestModuleIf ); |
|
68 |
|
69 /** |
|
70 * Destructor. |
|
71 */ |
|
72 virtual ~CTestPnpUtil(); |
|
73 |
|
74 public: // New functions |
|
75 |
|
76 /** |
|
77 * ?member_description. |
|
78 * @since ?Series60_version |
|
79 * @param ?arg1 ?description |
|
80 * @return ?description |
|
81 */ |
|
82 |
|
83 |
|
84 public: // Functions from base classes |
|
85 |
|
86 /** |
|
87 * From CScriptBase Runs a script line. |
|
88 * @since ?Series60_version |
|
89 * @param aItem Script line containing method name and parameters |
|
90 * @return Symbian OS error code |
|
91 */ |
|
92 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
93 |
|
94 protected: // New functions |
|
95 |
|
96 /** |
|
97 * ?member_description. |
|
98 * @since ?Series60_version |
|
99 * @param ?arg1 ?description |
|
100 * @return ?description |
|
101 */ |
|
102 |
|
103 |
|
104 protected: // Functions from base classes |
|
105 |
|
106 /** |
|
107 * From ?base_class ?member_description |
|
108 */ |
|
109 |
|
110 |
|
111 private: |
|
112 |
|
113 /** |
|
114 * C++ default constructor. |
|
115 */ |
|
116 CTestPnpUtil( CTestModuleIf& aTestModuleIf ); |
|
117 |
|
118 /** |
|
119 * By default Symbian 2nd phase constructor is private. |
|
120 */ |
|
121 void ConstructL(); |
|
122 |
|
123 // Prohibit copy constructor if not deriving from CBase. |
|
124 // Prohibit assigment operator if not deriving from CBase. |
|
125 |
|
126 /** |
|
127 * Frees all resources allocated from test methods. |
|
128 * @since ?Series60_version |
|
129 */ |
|
130 void Delete(); |
|
131 |
|
132 /** |
|
133 * Test methods are listed below. |
|
134 */ |
|
135 |
|
136 /** |
|
137 * Example test method. |
|
138 * @since ?Series60_version |
|
139 * @param aItem Script line containing parameters. |
|
140 * @return Symbian OS error code. |
|
141 */ |
|
142 virtual TInt pnpDocHandlerL(); |
|
143 TInt PnPUtilVerifySignatureL(); |
|
144 TInt ConstructUriParamL(); |
|
145 TInt LaunchOnlineSupportTestL(); |
|
146 TInt GetProvAdapvalueL(); |
|
147 TInt SetProvAdapvalueL(); |
|
148 TInt PnpGetApplicationUidL(); |
|
149 TInt PnpSetApplicationUidL(); |
|
150 TInt ProvNewLC(); |
|
151 TInt PnPUtilFormatMncCodeL(); |
|
152 TInt PnPUtilStoreAccessPointL(); |
|
153 TInt PnPUtilOperatorLongNameL(); |
|
154 TInt PnPUtilRegisteredInHomeNetworkL(); |
|
155 TInt GetAndSetNetworkMncL(); |
|
156 TInt GetAndSetNetworkMccL(); |
|
157 TInt GetAndSetHomeMncL(); |
|
158 TInt GetAndSetHomeMccL(); |
|
159 TInt PnPUtilFetchNetworkInfoL(); |
|
160 TInt PnPUtilFetchHomeNetworkInfoL(); |
|
161 TInt PnPUtilImsiL(); |
|
162 TInt PnPUtilGetKeyInfoL(); |
|
163 TInt PnPUtilGetNonceL(); |
|
164 TInt PnPUtilGetNonceValidityTimeL(); |
|
165 TInt PnPUtilCreateNewNonceL(); |
|
166 TInt PnPUtilGetTokenValueL(); |
|
167 TInt PnPUtilGetTokenValidityTimeL(); |
|
168 TInt PnPUtilCreateNewTokenL(); |
|
169 TInt PnPUtilVersionL(); |
|
170 TInt PnPUtilNewLC(); |
|
171 TInt PnPUtilNewL(); |
|
172 |
|
173 /** |
|
174 * Method used to log version of test class |
|
175 */ |
|
176 void SendTestClassVersion(); |
|
177 |
|
178 //ADD NEW METHOD DEC HERE |
|
179 //[TestMethods] - Do not remove |
|
180 |
|
181 public: // Data |
|
182 // ?one_line_short_description_of_data |
|
183 //?data_declaration; |
|
184 |
|
185 protected: // Data |
|
186 // ?one_line_short_description_of_data |
|
187 //?data_declaration; |
|
188 |
|
189 private: // Data |
|
190 |
|
191 // ?one_line_short_description_of_data |
|
192 //?data_declaration; |
|
193 |
|
194 // Reserved pointer for future extension |
|
195 |
|
196 |
|
197 public: // Friend classes |
|
198 //?friend_class_declaration; |
|
199 protected: // Friend classes |
|
200 //?friend_class_declaration; |
|
201 private: // Friend classes |
|
202 //?friend_class_declaration; |
|
203 |
|
204 private: |
|
205 CPnpUtilImpl *pnputil; |
|
206 |
|
207 }; |
|
208 |
|
209 #endif // TESTPNPUTIL_H |
|
210 |
|
211 // End of File |