|
1 /* |
|
2 * Copyright (c) 2002-2009 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: SenFragment test module. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __SENSERVICECONNECTION_H__ |
|
20 #define __SENSERVICECONNECTION_H__ |
|
21 |
|
22 //#define __ENABLE_ALR__ |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <StifTestModule.h> |
|
26 #include <StifLogger.h> |
|
27 |
|
28 #include <MSenServiceConsumer.h> |
|
29 #include <SenBaseFragment.h> |
|
30 #include <SenBaseElement.h> |
|
31 #include <SenXmlReader.h> |
|
32 #include <SenServiceConnection.h> |
|
33 |
|
34 #include <f32file.h> |
|
35 #include <e32base.h> // for CActive |
|
36 #include <e32std.h> |
|
37 #include <unistd.h> |
|
38 #include <aknnotewrappers.h> |
|
39 #include <SenIdentityProvider.h> |
|
40 |
|
41 // MACROS |
|
42 //#define ?macro ?macro_def |
|
43 #define TEST_MODULE_VERSION_MAJOR 50 |
|
44 #define TEST_MODULE_VERSION_MINOR 9 |
|
45 #define TEST_MODULE_VERSION_BUILD 6 |
|
46 |
|
47 #ifdef __ENABLE_ALR__ |
|
48 #include <comms-infras/cs_mobility_apiext.h> |
|
49 #include <senserviceconnectioninterfaces.h> |
|
50 #endif //__ENABLE_ALR__ |
|
51 |
|
52 #include <msencobrandinginterface.h> |
|
53 |
|
54 // Logging path |
|
55 _LIT( KSenServiceConnectionLogPath, "\\logs\\testframework\\SenServiceConnectionBCTest\\" ); |
|
56 // Log file |
|
57 _LIT( KSenServiceConnectionLogFile, "SenServiceConnectionBCTest.txt" ); |
|
58 |
|
59 // INTERNAL INCLUDES |
|
60 namespace |
|
61 { |
|
62 _LIT16(KSessionsFile,"c:\\private\\101f96f4\\SenSessions.xml"); |
|
63 _LIT16(KIdentitiesFile,"c:\\private\\101f96f4\\senidentities.xml"); |
|
64 } |
|
65 |
|
66 enum TUT_CSenServiceConnection |
|
67 { |
|
68 ENotInitialized = 1, |
|
69 EConnectionNotReady, |
|
70 }; |
|
71 |
|
72 enum TMSCommands |
|
73 { |
|
74 EMSNMessengerRegister, |
|
75 EMSNMessengerInvite, |
|
76 EMSNMessengerSend, |
|
77 EMSNMessengerUnRegister, |
|
78 }; |
|
79 |
|
80 // FORWARD DECLARATIONS |
|
81 class CSenBaseFragment; |
|
82 class CSenBaseElement; |
|
83 class CSenSoapEnvelope; |
|
84 class SenXmlUtils; |
|
85 class CSenServiceConnection; |
|
86 class CSenXmlReader; |
|
87 class CSenDomFragment; |
|
88 class CSenXmlServiceDescription; |
|
89 class CSenServicePattern; |
|
90 class CSenServiceManager; |
|
91 class CSenSoapMessage; |
|
92 class CSenSoapMessage2; |
|
93 class CSenVtcpTransportProperties; |
|
94 |
|
95 /* |
|
96 #include <e32def.h> |
|
97 #ifndef NONSHARABLE_CLASS |
|
98 #define NONSHARABLE_CLASS(x) class x |
|
99 #endif |
|
100 */ |
|
101 // Function pointer related internal definitions |
|
102 // Visual studio 6.0 (__VC32__) needs different type of handling |
|
103 #ifdef __VC32__ |
|
104 #define GETPTR |
|
105 #else |
|
106 #define GETPTR & |
|
107 #endif |
|
108 #define ENTRY(str,func) {_S(str), GETPTR func,0,0,0} |
|
109 #define FUNCENTRY(func) {_S(#func), GETPTR func,0,0,0} |
|
110 #define OOM_ENTRY(str,func,a,b,c) {_S(str), GETPTR func,a,b,c} |
|
111 #define OOM_FUNCENTRY(func,a,b,c) {_S(#func), GETPTR func,a,b,c} |
|
112 |
|
113 // FUNCTION PROTOTYPES |
|
114 //?type ?function_name(?arg_list); |
|
115 |
|
116 // FORWARD DECLARATIONS |
|
117 //class ?FORWARD_CLASSNAME; |
|
118 class CSenServiceConnectionBCTest; |
|
119 |
|
120 // DATA TYPES |
|
121 //enum ?declaration |
|
122 //typedef ?declaration |
|
123 //extern ?data_type; |
|
124 // A typedef for function that does the actual testing, |
|
125 // function is a type |
|
126 // TInt CSenFragmentBCTest::<NameOfFunction> ( TTestResult& aResult ) |
|
127 typedef TInt (CSenServiceConnectionBCTest::* TestFunction)(TTestResult&); |
|
128 |
|
129 // CLASS DECLARATION |
|
130 |
|
131 /** |
|
132 * An internal structure containing a test case name and |
|
133 * the pointer to function doing the test |
|
134 * |
|
135 * @lib ?library |
|
136 * @since ?Series60_version |
|
137 */ |
|
138 class TCaseInfoInternal |
|
139 { |
|
140 public: |
|
141 const TText* iCaseName; |
|
142 TestFunction iMethod; |
|
143 TBool iIsOOMTest; |
|
144 TInt iFirstMemoryAllocation; |
|
145 TInt iLastMemoryAllocation; |
|
146 }; |
|
147 |
|
148 // CLASS DECLARATION |
|
149 |
|
150 /** |
|
151 * A structure containing a test case name and |
|
152 * the pointer to function doing the test |
|
153 * |
|
154 * @lib ?library |
|
155 * @since ?Series60_version |
|
156 */ |
|
157 class TCaseInfo |
|
158 { |
|
159 public: |
|
160 TPtrC iCaseName; |
|
161 TestFunction iMethod; |
|
162 TBool iIsOOMTest; |
|
163 TInt iFirstMemoryAllocation; |
|
164 TInt iLastMemoryAllocation; |
|
165 |
|
166 TCaseInfo( const TText* a ) : iCaseName( (TText*) a ) |
|
167 { |
|
168 }; |
|
169 |
|
170 }; |
|
171 |
|
172 |
|
173 |
|
174 // CLASS DEFINITION |
|
175 /** |
|
176 * |
|
177 * EUnitWizard generated test class. |
|
178 * |
|
179 */ |
|
180 NONSHARABLE_CLASS( CSenServiceConnectionBCTest ) |
|
181 #ifdef __ENABLE_ALR__ |
|
182 : public CTestModuleBase, public MSenServiceConsumer, public MSenAuthenticationProvider, public MSenExtendedConsumerInterface, public MSenCoBrandingObserver, MSenHostletConsumer, public MMobilityProtocolResp |
|
183 #else |
|
184 : public CTestModuleBase, public MSenServiceConsumer, public MSenAuthenticationProvider, public MSenExtendedConsumerInterface, public MSenCoBrandingObserver, MSenHostletConsumer |
|
185 #endif //__ENABLE_ALR__ |
|
186 { |
|
187 public: |
|
188 enum TCallback |
|
189 { |
|
190 ECallbackNone = 0, |
|
191 ECallbackHandleMessage, |
|
192 ECallbackHandleError |
|
193 }; |
|
194 |
|
195 public: // Constructors and destructor |
|
196 |
|
197 |
|
198 /** |
|
199 * Two-phased constructor. |
|
200 */ |
|
201 static CSenServiceConnectionBCTest* NewL(); |
|
202 |
|
203 /** |
|
204 * Destructor. |
|
205 */ |
|
206 virtual ~CSenServiceConnectionBCTest(); |
|
207 |
|
208 public: // New functions |
|
209 |
|
210 /** |
|
211 * ?member_description. |
|
212 * @since ?Series60_version |
|
213 * @param ?arg1 ?description |
|
214 * @return ?description |
|
215 */ |
|
216 //?type ?member_function( ?type ?arg1 ); |
|
217 |
|
218 public: // Functions from base classes |
|
219 |
|
220 /** |
|
221 * From CTestModuleBase InitL is used to initialize the |
|
222 * SenFragment. It is called once for every instance of |
|
223 * TestModuleSenFragment after its creation. |
|
224 * @since ?Series60_version |
|
225 * @param aIniFile Initialization file for the test module (optional) |
|
226 * @param aFirstTime Flag is true when InitL is executed for first |
|
227 * created instance of SenFragment. |
|
228 * @return Symbian OS error code |
|
229 */ |
|
230 TInt InitL( TFileName& aIniFile, TBool aFirstTime ); |
|
231 |
|
232 /** |
|
233 * From CTestModuleBase GetTestCasesL is used to inquiry test cases |
|
234 * from SenFragment. |
|
235 * @since ?Series60_version |
|
236 * @param aTestCaseFile Test case file (optional) |
|
237 * @param aTestCases Array of TestCases returned to test framework |
|
238 * @return Symbian OS error code |
|
239 */ |
|
240 TInt GetTestCasesL( const TFileName& aTestCaseFile, |
|
241 RPointerArray<TTestCaseInfo>& aTestCases ); |
|
242 |
|
243 /** |
|
244 * From CTestModuleBase RunTestCaseL is used to run an individual |
|
245 * test case. |
|
246 * @since ?Series60_version |
|
247 * @param aCaseNumber Test case number |
|
248 * @param aTestCaseFile Test case file (optional) |
|
249 * @param aResult Test case result returned to test framework (PASS/FAIL) |
|
250 * @return Symbian OS error code (test case execution error, which is |
|
251 * not reported in aResult parameter as test case failure). |
|
252 */ |
|
253 TInt RunTestCaseL( const TInt aCaseNumber, |
|
254 const TFileName& aTestCaseFile, |
|
255 TTestResult& aResult ); |
|
256 |
|
257 /** |
|
258 * From CTestModuleBase; OOMTestQueryL is used to specify is particular |
|
259 * test case going to be executed using OOM conditions |
|
260 * @param aTestCaseFile Test case file (optional) |
|
261 * @param aCaseNumber Test case number (optional) |
|
262 * @param aFailureType OOM failure type (optional) |
|
263 * @param aFirstMemFailure The first heap memory allocation failure value (optional) |
|
264 * @param aLastMemFailure The last heap memory allocation failure value (optional) |
|
265 * @return TBool |
|
266 */ |
|
267 virtual TBool OOMTestQueryL( const TFileName& /* aTestCaseFile */, |
|
268 const TInt /* aCaseNumber */, |
|
269 TOOMFailureType& aFailureType, |
|
270 TInt& /* aFirstMemFailure */, |
|
271 TInt& /* aLastMemFailure */ ); |
|
272 |
|
273 /** |
|
274 * From CTestModuleBase; OOMTestInitializeL may be used to initialize OOM |
|
275 * test environment |
|
276 * @param aTestCaseFile Test case file (optional) |
|
277 * @param aCaseNumber Test case number (optional) |
|
278 * @return None |
|
279 */ |
|
280 virtual void OOMTestInitializeL( const TFileName& /* aTestCaseFile */, |
|
281 const TInt /* aCaseNumber */ ); |
|
282 |
|
283 /** |
|
284 * From CTestModuleBase; OOMHandleWarningL |
|
285 * @param aTestCaseFile Test case file (optional) |
|
286 * @param aCaseNumber Test case number (optional) |
|
287 * @param aFailNextValue FailNextValue for OOM test execution (optional) |
|
288 * @return None |
|
289 * |
|
290 * User may add implementation for OOM test warning handling. Usually no |
|
291 * implementation is required. |
|
292 */ |
|
293 virtual void OOMHandleWarningL( const TFileName& /* aTestCaseFile */, |
|
294 const TInt /* aCaseNumber */, |
|
295 TInt& /* aFailNextValue */); |
|
296 |
|
297 /** |
|
298 * From CTestModuleBase; OOMTestFinalizeL may be used to finalize OOM |
|
299 * test environment |
|
300 * @param aTestCaseFile Test case file (optional) |
|
301 * @param aCaseNumber Test case number (optional) |
|
302 * @return None |
|
303 * |
|
304 */ |
|
305 virtual void OOMTestFinalizeL( const TFileName& /* aTestCaseFile */, |
|
306 const TInt /* aCaseNumber */ ); |
|
307 /** |
|
308 * Method used to log version of test module |
|
309 */ |
|
310 void SendTestModuleVersion(); |
|
311 |
|
312 private: |
|
313 |
|
314 /** |
|
315 * C++ default constructor. |
|
316 */ |
|
317 CSenServiceConnectionBCTest(); |
|
318 |
|
319 /** |
|
320 * By default Symbian 2nd phase constructor is private. |
|
321 */ |
|
322 void ConstructL(); |
|
323 |
|
324 // Prohibit copy constructor if not deriving from CBase. |
|
325 // ?classname( const ?classname& ); |
|
326 // Prohibit assigment operator if not deriving from CBase. |
|
327 // ?classname& operator=( const ?classname& ); |
|
328 |
|
329 /** |
|
330 * Function returning test case name and pointer to test case function. |
|
331 * @since ?Series60_version |
|
332 * @param aCaseNumber test case number |
|
333 * @return TCaseInfo |
|
334 */ |
|
335 const TCaseInfo Case ( const TInt aCaseNumber ) const; |
|
336 |
|
337 // MService Consumer implementation |
|
338 void HandleMessageL(const TDesC8& aMessage); |
|
339 void HandleErrorL(const int aErrorCode, const TDesC8& aError); |
|
340 void SetStatus(const TInt aStatus); |
|
341 |
|
342 void SetupL(); |
|
343 void Teardown(); |
|
344 void ErrorL(TInt aCode); |
|
345 |
|
346 TInt UT_CSenServiceConnection_RegisterIdentityProviderLL( TTestResult& aResult ); |
|
347 |
|
348 TInt UT_CSenServiceConnection_NewL_ContractL( TTestResult& aResult ); |
|
349 TInt UT_CSenServiceConnection_NewLC_ContractL( TTestResult& aResult ); |
|
350 TInt UT_CSenServiceConnection_NewL_WS_I_DescriptionL( TTestResult& aResult ); |
|
351 TInt UT_CSenServiceConnection_NewLC_WS_I_DescriptionL( TTestResult& aResult ); |
|
352 TInt UT_CSenServiceConnection_NewL_ID_WSF_DescriptionL( TTestResult& aResult ); |
|
353 TInt UT_CSenServiceConnection_NewLC_ID_WSF_DescriptionL( TTestResult& aResult ); |
|
354 TInt UT_CSenServiceConnection_NewL_WS_I_PatternL( TTestResult& aResult ); |
|
355 TInt UT_CSenServiceConnection_NewLC_WS_I_PatternL( TTestResult& aResult ); |
|
356 TInt UT_CSenServiceConnection_NewL_ID_WSF_PatternL( TTestResult& aResult ); |
|
357 TInt UT_CSenServiceConnection_NewLC_ID_WSF_PatternL( TTestResult& aResult ); |
|
358 |
|
359 TInt UT_CSenServiceConnection_NewL_ContractL1( TTestResult& aResult ); |
|
360 TInt UT_CSenServiceConnection_NewLC_ContractL1( TTestResult& aResult ); |
|
361 TInt UT_CSenServiceConnection_NewL_WS_I_DescriptionL1( TTestResult& aResult ); |
|
362 TInt UT_CSenServiceConnection_NewLC_WS_I_DescriptionL1( TTestResult& aResult ); |
|
363 TInt UT_CSenServiceConnection_NewL_WS_I_PatternL1( TTestResult& aResult ); |
|
364 TInt UT_CSenServiceConnection_NewLC_WS_I_PatternL1( TTestResult& aResult ); |
|
365 TInt UT_CSenServiceConnectionSnapIdL( TTestResult& aResult ); |
|
366 TInt UT_CSenServiceConnectionSetSnapIdL( TTestResult& aResult ); |
|
367 |
|
368 TInt UT_CSenServiceConnection_SendL_RFileL( TTestResult& aResult ); |
|
369 TInt UT_CSenServiceConnection_SubmitL_RFileL( TTestResult& aResult ); |
|
370 TInt UT_CSenServiceConnection_SendL_RFileL_IPCBigrequest( TTestResult& aResult ); |
|
371 TInt UT_CSenServiceConnection_SubmitL_RFileL_IPCBigrequest( TTestResult& aResult ); |
|
372 TInt UT_CSenServiceConnection_SubmitL_RFileL_MTOM( TTestResult& aResult ); |
|
373 |
|
374 TInt UT_CSenServiceConnection_SendL_NoErrorL( TTestResult& aResult ); |
|
375 TInt UT_CSenServiceConnection_SendL_CancelL( TTestResult& aResult ); |
|
376 TInt UT_CSenServiceConnection_SendL_ConNotInitialL( TTestResult& aResult ); |
|
377 |
|
378 TInt UT_CSenServiceConnection_SendMultipleMessagesL( TTestResult& aResult ); |
|
379 TInt UT_CSenServiceConnection_SendL_Get_Post1L( TTestResult& aResult ); |
|
380 TInt UT_CSenServiceConnection_SendL_Get_Post2L( TTestResult& aResult ); |
|
381 TInt UT_CSenServiceConnection_SendL_Proxy1L( TTestResult& aResult ); |
|
382 TInt UT_CSenServiceConnection_SendL_Proxy2L( TTestResult& aResult ); |
|
383 TInt UT_CSenServiceConnection_SendL_Pattern_IAP1L( TTestResult& aResult ); |
|
384 TInt UT_CSenServiceConnection_SendL_Pattern_IAP2L( TTestResult& aResult ); |
|
385 TInt UT_CSenServiceConnection_SendL_Pattern_IAP3L( TTestResult& aResult ); |
|
386 |
|
387 TInt UT_CSenServiceConnection_SendL_ContentType1L( TTestResult& aResult ); |
|
388 TInt UT_CSenServiceConnection_SendL_ContentType2L( TTestResult& aResult ); |
|
389 TInt UT_CSenServiceConnection_SendL_UserAgent1L( TTestResult& aResult ); |
|
390 TInt UT_CSenServiceConnection_SendL_UserAgent2L( TTestResult& aResult ); |
|
391 TInt UT_CSenServiceConnection_SendL_MessageSoapActionL( TTestResult& aResult ); |
|
392 TInt UT_CSenServiceConnection_SendL_SoapAction1L( TTestResult& aResult ); |
|
393 TInt UT_CSenServiceConnection_SendL_SoapAction2L( TTestResult& aResult ); |
|
394 TInt UT_CSenServiceConnection_SendL_CustomHttpHeaderL( TTestResult& aResult ); |
|
395 |
|
396 TInt UT_CSenServiceConnection_SendL_ConBusyL( TTestResult& aResult ); |
|
397 |
|
398 TInt UT_CSenServiceConnection_SendL_ConInitializingL( TTestResult& aResult ); |
|
399 |
|
400 TInt UT_CSenServiceConnection_SendL_ConExpiredL( TTestResult& aResult ); |
|
401 |
|
402 TInt UT_CSenServiceConnection_SendL_ErrSubmitL( TTestResult& aResult ); |
|
403 |
|
404 TInt UT_CSenServiceConnection_SendL_ErrNoMemoryL( TTestResult& aResult ); |
|
405 |
|
406 TInt UT_CSenServiceConnection_SubmitLL( TTestResult& aResult ); |
|
407 |
|
408 TInt UT_CSenServiceConnection_IsReadyL( TTestResult& aResult ); |
|
409 |
|
410 TInt UT_CSenServiceConnection_HasFacetLL( TTestResult& aResult ); |
|
411 |
|
412 TInt UT_CSenServiceConnection_CompleteServerMessagesOnOffL( TTestResult& aResult ); |
|
413 |
|
414 TInt UT_CSenServiceConnection_SendL_1L( TTestResult& aResult ); |
|
415 |
|
416 TInt UT_CSenServiceConnection_SubmitL_1L( TTestResult& aResult ); |
|
417 |
|
418 TInt UT_CSenServiceConnection_StartTransactionL( TTestResult& aResult ); |
|
419 |
|
420 TInt UT_CSenServiceConnection_TransactionCompletedL( TTestResult& aResult ); |
|
421 |
|
422 TInt UT_CSenServiceConnection_TP_Boundaries1( TTestResult& aResult ); |
|
423 |
|
424 TInt UT_CSenServiceConnection_TP_Boundaries2( TTestResult& aResult ); |
|
425 |
|
426 TInt UT_CSenServiceConnection_TP_Boundaries3( TTestResult& aResult ); |
|
427 |
|
428 TInt UT_CSenServiceConnection_TP_Boundaries4( TTestResult& aResult ); |
|
429 |
|
430 TInt UT_CSenServiceConnection_TP_Boundaries5( TTestResult& aResult ); |
|
431 |
|
432 TInt UT_CSenServiceConnection_TP_Boundaries6( TTestResult& aResult ); |
|
433 |
|
434 TInt UT_CSenServiceConnection_TP_Boundaries7( TTestResult& aResult ); |
|
435 |
|
436 TInt UT_CSenServiceConnection_TP_Boundaries8( TTestResult& aResult ); |
|
437 |
|
438 TInt UT_CSenServiceConnection_TP_Boundaries9( TTestResult& aResult ); |
|
439 |
|
440 TInt UT_CSenServiceConnection_TP_SecDialog( TTestResult& aResult ); |
|
441 |
|
442 TInt UT_CSenServiceConnection_TP_Omitted_True( TTestResult& aResult ); |
|
443 |
|
444 TInt UT_CSenServiceConnection_TP_Omitted_False( TTestResult& aResult ); |
|
445 |
|
446 TInt UT_CSenServiceConnection_TP_Removed( TTestResult& aResult ); |
|
447 |
|
448 TInt UT_CSenServiceConnection_TP_Omit_Rem( TTestResult& aResult ); |
|
449 |
|
450 |
|
451 TInt UT_CSenServiceConnection_SubmitL_LibXml2_L( TTestResult& aResult ); |
|
452 |
|
453 TInt UT_CSenServiceConnection_SubmitL_LibXml2_with_Properties_L( TTestResult& aResult ); |
|
454 |
|
455 TInt UT_CSenServiceConnection_SubmitL_LibXml2_MTOM_20KBL( TTestResult& aResult ); |
|
456 TInt UT_CSenServiceConnection_SubmitL_LibXml2_MTOM_200KBL( TTestResult& aResult ); |
|
457 TInt UT_CSenServiceConnection_SubmitL_LibXml2_MTOM_Less1MBL( TTestResult& aResult ); |
|
458 TInt UT_CSenServiceConnection_SubmitL_LibXml2_MTOM_More1MBL( TTestResult& aResult ); |
|
459 |
|
460 TInt UT_CSenServiceConnection_TestMessengerL( TTestResult& aResult ); |
|
461 TInt UT_CSenServiceConnection_TestMessenger2L( TTestResult& aResult ); |
|
462 TInt UT_CSenServiceConnection_TestMessenger3L( TTestResult& aResult ); |
|
463 TInt UT_CSenServiceConnection_TestMessenger4L( TTestResult& aResult ); |
|
464 TInt UT_CSenServiceConnection_TestMessenger5L( TTestResult& aResult ); |
|
465 TInt UT_CSenServiceConnection_TestMessenger6L( TTestResult& aResult ); |
|
466 TInt UT_CSenServiceConnection_TestMessenger7L( TTestResult& aResult ); |
|
467 |
|
468 TInt UT_CSenServiceConnection_TP_Custom_Header(const TDesC8& KCustomHttpHeader, |
|
469 const TDesC8& KCustomHttpHeaderValue); |
|
470 |
|
471 TInt UT_CSenServiceConnection_TP_Send(const TDesC8& aLogFileName, |
|
472 const TDesC8& aCustomHttpHeader, |
|
473 const TDesC8& aCustomHttpHeaderValue, |
|
474 CSenServiceConnection* iServiceConnection); |
|
475 |
|
476 TInt UT_CSenServiceConnection_TP_CheckLogs(const TDesC& aLogFilePath, |
|
477 const TDesC8& aCustomHttpHeader, |
|
478 const TDesC8& aCustomHttpHeaderValue); |
|
479 |
|
480 TUint32 SearchIAPIdByNameL( const TDesC& aIAPName ); |
|
481 |
|
482 CSenSoapMessage* CreateAuthRequestLC(); |
|
483 |
|
484 CSenSoapMessage2* CreateNewAuthRequestLC(); |
|
485 |
|
486 HBufC8* ReadFileL(const TDesC& aFilename); |
|
487 |
|
488 TInt Find(const TDesC8& aDestination, const TDesC8& aDescToFind, TInt aStartingPos); |
|
489 TBool ReplaceAll(TPtr8 aDestination, const TDesC8& aFrom, const TDesC8& aTo); |
|
490 TBool DecodeHttpCharactersL(const TDesC8& aOriginal, HBufC8*& aDecoded); |
|
491 |
|
492 HBufC8* HttpMethodValueFromXmlLC(const TDesC8& aXml); |
|
493 |
|
494 HBufC8* HttpPropertyValueFromXmlLC(const TDesC8& aXml, |
|
495 const TDesC8& aPropertyName); |
|
496 |
|
497 TInt StartActiveScheduler(TInt aNumberOfSentMessages); |
|
498 TInt StopActiveScheduler(); |
|
499 |
|
500 CSenVtcpTransportProperties* CreateMSTransportPropertiesL(TMSCommands aCommand); |
|
501 CSenSoapMessage2* CreateMSSoapMessage(TMSCommands aCommand); |
|
502 TInt RegisterSTSL(); |
|
503 TInt RegisterSTSInvalidPasswordL(); |
|
504 TInt UnregisterSTSL( ); |
|
505 TInt SetPolicyL(CSenXmlServiceDescription* pServDesc, const TDesC8& pName, |
|
506 const TDesC8& pValue); |
|
507 const CSenIdentityProvider* IdentityProviderL() const ; |
|
508 TInt CreateConnectionToMessengerServiceL(); |
|
509 TInt CreateConnectionToMessengerServiceWithoutCallbackL(); |
|
510 |
|
511 TInt AddDeviceOptionsHeader2L(CSenSoapMessage2& aMessage); |
|
512 TInt AddApplicationHeader2L(CSenSoapMessage2& aMessage); |
|
513 |
|
514 TInt SendL( TTestResult& aResult ); |
|
515 TInt SubmitL( TTestResult& aResult ); |
|
516 TInt IsReady( TTestResult& aResult ) ; |
|
517 TInt HasFacetL( TTestResult& aResult ); |
|
518 |
|
519 TInt CompleteServerMessagesOnOff( TTestResult& aResult ) ; |
|
520 TInt Send2L( TTestResult& aResult ) ; |
|
521 TInt Submit2L( TTestResult& aResult ) ; |
|
522 TInt ServiceDescriptionL( TTestResult& aResult ) ; |
|
523 TInt StartTransaction( TTestResult& aResult ) ; |
|
524 TInt TransactionCompleted( TTestResult& aResult ) ; |
|
525 TInt TxnId( TTestResult& aResult ) ; |
|
526 TInt SetTransportPropertiesL( TTestResult& aResult ) ; |
|
527 TInt TransportPropertiesL( TTestResult& aResult ) ; |
|
528 TInt Send3L( TTestResult& aResult ) ; |
|
529 TInt Submit3L( TTestResult& aResult ) ; |
|
530 TInt Send4L( TTestResult& aResult ) ; |
|
531 TInt Submit4L( TTestResult& aResult ) ; |
|
532 TInt Send5L( TTestResult& aResult ) ; |
|
533 TInt Submit5L( TTestResult& aResult ) ; |
|
534 TInt Response( TTestResult& aResult ) ; |
|
535 TInt CancelTransaction( TTestResult& aResult ) ; |
|
536 TInt IdentityProvider1L( TTestResult& aResult ) ; |
|
537 TInt Identifier( TTestResult& aResult ) ; |
|
538 TInt Name( TTestResult& aResult ); |
|
539 TInt Value( TTestResult& aResult ); |
|
540 TInt IntValue( TTestResult& aResult ); |
|
541 TInt BoolValue( TTestResult& aResult ); |
|
542 TInt Type( TTestResult& aResult ); |
|
543 TInt ValueTokensL( TTestResult& aResult ); |
|
544 TInt IdentityProvider2L( TTestResult& aResult ) ; |
|
545 TInt Username1L( TTestResult& aResult ) ; |
|
546 TInt Password1L( TTestResult& aResult ) ; |
|
547 TInt ExtendedInterface1L( TTestResult& aResult ) ; |
|
548 TInt TransferProgress(TTestResult& aResult ); |
|
549 TInt HandleMeassage(TTestResult& aResult); |
|
550 TInt HandleErrorL(TTestResult& aResult); |
|
551 TInt SetStatus(TTestResult& aResult); |
|
552 TAny* GetInterfaceByUid( TUid aUID ); |
|
553 |
|
554 #ifdef __ENABLE_ALR__ |
|
555 TInt ALRL(TTestResult& aResult); |
|
556 |
|
557 //mobility methods |
|
558 virtual void PreferredCarrierAvailable( TAccessPointInfo aOldAPInfo, |
|
559 TAccessPointInfo aNewAPInfo, |
|
560 TBool aIsUpgrade, |
|
561 TBool aIsSeamless ) ; |
|
562 virtual void NewCarrierActive( TAccessPointInfo aNewAPInfo, TBool aIsSeamless ) ; |
|
563 |
|
564 virtual void Error(TInt aError) ; |
|
565 #endif //__ENABLE_ALR__ |
|
566 TInt CoBrandL(TTestResult& aResult); |
|
567 virtual TBool OnGetBrandIdL( const TDesC8& aBrandIdListAsXmlSnippet, RBuf8& aSelectedBrandId); |
|
568 TInt HostletConsumerL(TTestResult& aResult); |
|
569 virtual void SetConnectionId( TInt aConnectionId ); |
|
570 TInt DataTrafficDetailsL(TTestResult& aResult); |
|
571 private: // Data |
|
572 |
|
573 CSenXmlServiceDescription* iSenXmlServiceDescription; |
|
574 CSenXmlServiceDescription* iSession; |
|
575 CSenServiceConnection* iServiceConnection; |
|
576 CSenSoapMessage* iSOAPMessage; |
|
577 #ifdef __ENABLE_ALR__ |
|
578 MSenAlrServiceConnection* iALRSC; |
|
579 #endif //__ENABLE_ALR__ |
|
580 TBool iUseALR; |
|
581 TInt iAlrCallBackRetryCount; |
|
582 TBool iCoBrandingCallbackOption; |
|
583 TBool iHostletConsumerOption; |
|
584 TBool iGetDataTrafficDetails; |
|
585 TBool isNewCarrierAccepted; |
|
586 TBool isMigratedToPrefferedCarrier; |
|
587 CSenServiceManager* iManager; |
|
588 CSenXmlReader* iXmlReader; |
|
589 |
|
590 TInt iTransactionId; |
|
591 TInt iConnectionState; |
|
592 TBool iInitialized; |
|
593 TBool iReady; |
|
594 |
|
595 TCallback iCallback; |
|
596 HBufC8* ipMessage; |
|
597 |
|
598 TInt iNumberOfPendingOps; |
|
599 HBufC8* ipFrameworkID; |
|
600 |
|
601 TInt iErrorCode; |
|
602 |
|
603 CSenIdentityProvider* ipProviderForAuthProvider; |
|
604 TInt iAuthInfoAskCounter; |
|
605 RFs iFsSessionHandle; |
|
606 RFile iRFileHandle; |
|
607 |
|
608 private: // Data |
|
609 // Pointer to test (function) to be executed |
|
610 TestFunction iMethod; |
|
611 |
|
612 // Pointer to logger |
|
613 CStifLogger * iLog; |
|
614 CActiveScheduler* iActiveScheduler; |
|
615 |
|
616 // Reserved pointer for future extension |
|
617 //TAny* iReserved; |
|
618 |
|
619 public: // Friend classes |
|
620 //?friend_class_declaration; |
|
621 protected: // Friend classes |
|
622 //?friend_class_declaration; |
|
623 private: // Friend classes |
|
624 //?friend_class_declaration; |
|
625 |
|
626 |
|
627 }; |
|
628 |
|
629 #endif // __SENSERVICECONNECTION_H__ |
|
630 |
|
631 // End of file |