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