1 // Copyright (c) 2010 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 // |
|
15 |
|
16 |
|
17 |
|
18 /** |
|
19 @file te_tundrivertestwrapper.h |
|
20 @internalTechnology |
|
21 */ |
|
22 |
|
23 #ifndef TE_TUNDRIVERTESTWRAPPER_H |
|
24 #define TE_TUNDRIVERTESTWRAPPER_H |
|
25 |
|
26 |
|
27 #include <test/datawrapper.h> |
|
28 #include <e32base.h> |
|
29 #include <e32std.h> |
|
30 #include <e32cons.h> // Console |
|
31 #include <es_sock.h> |
|
32 #include <in_sock.h> |
|
33 #include <nifman.h> |
|
34 #include <commdbconnpref.h> |
|
35 #include <metadatabase.h> |
|
36 #include "te_TcpSslTestEngine.h" |
|
37 |
|
38 _LIT(KDummy3rdPartyApp,"Dummy3rdpartyApp.exe"); |
|
39 _LIT(KArg,"NULL"); |
|
40 |
|
41 /** |
|
42 Forward declaration |
|
43 */ |
|
44 |
|
45 class RSocketServ; |
|
46 |
|
47 /** |
|
48 Class implements the CDataWrapper base class and provides the commands used by the scripts file |
|
49 */ |
|
50 class CTunDriverTestWrapper : public CDataWrapper |
|
51 { |
|
52 public: |
|
53 CTunDriverTestWrapper(); |
|
54 ~CTunDriverTestWrapper(); |
|
55 |
|
56 static CTunDriverTestWrapper* NewL(); |
|
57 //This function is not used currently |
|
58 virtual TAny* GetObject() { return this; } |
|
59 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
60 |
|
61 protected: |
|
62 void ConstructL(); |
|
63 |
|
64 private: |
|
65 TInt StartD3PApp(); |
|
66 void StopD3PApp(); |
|
67 void StartConn(); |
|
68 void DoRConnTest1_1(); |
|
69 void DoRConnTest1_2(); |
|
70 void DoRConnTest1_3(const TDesC& aSection); |
|
71 void DoRConnTest1_4(const TDesC& aSection); |
|
72 void DoRConnTest1_5(const TDesC& aSection); |
|
73 void DoRConnTest1_6(const TDesC& aSection); |
|
74 void DoRConnTest1_7(const TDesC& aSection); |
|
75 void DoRConnTest1_8(const TDesC& aSection); |
|
76 void DoRConnTest1_9(const TDesC& aSection); |
|
77 void DoRConnTest1_10(const TDesC& aSection); |
|
78 void DoRConnTest1_11(); |
|
79 void DoRConnTest1_12(); |
|
80 void DoRConnTest1_13(const TDesC& aSection); |
|
81 void DoRConnTest1_14(const TDesC& aSection); |
|
82 void DoRConnTest1_15(); |
|
83 void DoRConnTest1_16(const TDesC& aSection); |
|
84 void DoRConnTest1_17(const TDesC& aSection); |
|
85 void DoRConnTest1_20(); |
|
86 void DoRConnTest1_21(); |
|
87 void DoRConnTest1_22(); |
|
88 void DoRConnTest1_23(); |
|
89 void DoRConnTest1_24(); |
|
90 void DoRConnTest1_25(); |
|
91 void DoRConnTest1_26(); |
|
92 void DoRConnTest1_27(); |
|
93 void DoRConnTest1_28(); |
|
94 void DoRConnTest1_29(); |
|
95 void DoRConnTest1_30(); |
|
96 void DoRConnTest1_31(); |
|
97 void DoRConnTest1_32(); |
|
98 void DoRConnTest1_33(); |
|
99 TBool FindInterface(TPckgBuf<TSoInet6InterfaceInfo> &info); |
|
100 |
|
101 private: |
|
102 TBuf<128> iNextTestCaseInput; |
|
103 |
|
104 TRequestStatus iStatus; |
|
105 TInt iVTunError; |
|
106 TUint iInitNumOfInterfaces, iCurNumOfInterfaces; |
|
107 TInetAddr iDestAddr, iRealDestAddr; |
|
108 TInt iDestPort, iRealDestPort; |
|
109 RSocketServ iSocketServ, iSocketServ1, iSocketServ2; |
|
110 RSocket iSocket, iSocket1, iSocket2; |
|
111 RConnection iConnection, iConnection1, iConnection2; |
|
112 |
|
113 RConnection *pConn, *pConn1, *pConn2; |
|
114 RProcess p; |
|
115 TBuf8<128> iSendBuf, iRecvBuf; |
|
116 |
|
117 TCommDbConnPref iCommDbPref, iCommDbPref1, iCommDbPref2; |
|
118 |
|
119 }; |
|
120 |
|
121 |
|
122 #endif //TE_TUNDRIVERTESTWRAPPER_H |
|