|
1 // Copyright (c) 2007-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 // Test step declarations for the UssdMessaging functional unit. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @internalTechnology |
|
20 */ |
|
21 |
|
22 |
|
23 #ifndef __CCTSYINTEGRATIONTESTUSSDMESSAGING_H__ |
|
24 #define __CCTSYINTEGRATIONTESTUSSDMESSAGING_H__ |
|
25 |
|
26 |
|
27 #include <test/testexecutestepbase.h> |
|
28 #include "cctsyintegrationtestsuitebase.h" |
|
29 #include "tsmsstoretsytesthelper.h" |
|
30 #include "tnetworktsytesthelper.h" |
|
31 |
|
32 class CEtelSessionMgr; |
|
33 |
|
34 |
|
35 class CCTSYIntegrationTestUssdMessagingBase : public CCTSYIntegrationTestSuiteStepBase |
|
36 { |
|
37 public: |
|
38 |
|
39 CCTSYIntegrationTestUssdMessagingBase(CEtelSessionMgr& aEtelSessionMgr); |
|
40 virtual ~CCTSYIntegrationTestUssdMessagingBase(); |
|
41 |
|
42 protected: |
|
43 |
|
44 // Simulate network sends a release complete |
|
45 TInt SimulateNetworkSendsReleaseCompleteL(); |
|
46 // Simulate network sends a USSD notify message |
|
47 TInt SimulateNetworkSendsNotifyMessageL(RMobileUssdMessaging::TMobileUssdMessageType aType, TInt aLength=0); |
|
48 // SendMessage, Simulate complete, CheckRelease |
|
49 TInt SendSimulateCompleteCheckCompleteL(RMobileUssdMessaging &aUssdMessaging, TDes8& aMsg,RMobileUssdMessaging::TMobileUssdMessageType aMessageType); |
|
50 // SendMessage, Simulate notify, CheckRelease |
|
51 TInt SendSimulateNotifyCheckCompleteL(RMobileUssdMessaging &aUssdMessaging, TDes8& aMsg,RMobileUssdMessaging::TMobileUssdMessageType aMessageType,RMobileUssdMessaging::TMobileUssdMessageType aSimulateType, TInt aLength=0); |
|
52 // Simulate Notify, check receive |
|
53 TInt SimulateNotifyCheckReceiveL(RMobileUssdMessaging &aUssdMessaging,RMobileUssdMessaging::TMobileUssdMessageType aSimulateType, TInt aLength=0); |
|
54 |
|
55 TSmsStoreTsyTestHelper iSmsStoreTsyTestHelper; |
|
56 TNetworkTsyTestHelper iNetworkTsyTestHelper; |
|
57 |
|
58 }; // class CCTSYIntegrationTestUssdMessagingBase |
|
59 |
|
60 |
|
61 class CCTSYIntegrationTestUssdMessaging0001 : public CCTSYIntegrationTestUssdMessagingBase |
|
62 { |
|
63 public: |
|
64 |
|
65 CCTSYIntegrationTestUssdMessaging0001(CEtelSessionMgr& aEtelSessionMgr); |
|
66 ~CCTSYIntegrationTestUssdMessaging0001(); |
|
67 virtual TVerdict doTestStepL(); |
|
68 static TPtrC GetTestStepName(); |
|
69 |
|
70 private: |
|
71 |
|
72 }; // class CCTSYIntegrationTestUssdMessaging0001 |
|
73 |
|
74 |
|
75 class CCTSYIntegrationTestUssdMessaging0002 : public CCTSYIntegrationTestUssdMessagingBase |
|
76 { |
|
77 public: |
|
78 |
|
79 CCTSYIntegrationTestUssdMessaging0002(CEtelSessionMgr& aEtelSessionMgr); |
|
80 ~CCTSYIntegrationTestUssdMessaging0002(); |
|
81 virtual TVerdict doTestStepL(); |
|
82 static TPtrC GetTestStepName(); |
|
83 |
|
84 private: |
|
85 |
|
86 }; // class CCTSYIntegrationTestUssdMessaging0002 |
|
87 |
|
88 |
|
89 class CCTSYIntegrationTestUssdMessaging0003 : public CCTSYIntegrationTestUssdMessagingBase |
|
90 { |
|
91 public: |
|
92 |
|
93 CCTSYIntegrationTestUssdMessaging0003(CEtelSessionMgr& aEtelSessionMgr); |
|
94 ~CCTSYIntegrationTestUssdMessaging0003(); |
|
95 virtual TVerdict doTestStepL(); |
|
96 static TPtrC GetTestStepName(); |
|
97 |
|
98 private: |
|
99 |
|
100 }; // class CCTSYIntegrationTestUssdMessaging0003 |
|
101 |
|
102 |
|
103 class CCTSYIntegrationTestUssdMessaging0004 : public CCTSYIntegrationTestUssdMessagingBase |
|
104 { |
|
105 public: |
|
106 |
|
107 CCTSYIntegrationTestUssdMessaging0004(CEtelSessionMgr& aEtelSessionMgr); |
|
108 ~CCTSYIntegrationTestUssdMessaging0004(); |
|
109 virtual TVerdict doTestStepL(); |
|
110 static TPtrC GetTestStepName(); |
|
111 |
|
112 private: |
|
113 |
|
114 }; // class CCTSYIntegrationTestUssdMessaging0004 |
|
115 |
|
116 |
|
117 class CCTSYIntegrationTestUssdMessaging0005 : public CCTSYIntegrationTestUssdMessagingBase |
|
118 { |
|
119 public: |
|
120 |
|
121 CCTSYIntegrationTestUssdMessaging0005(CEtelSessionMgr& aEtelSessionMgr); |
|
122 ~CCTSYIntegrationTestUssdMessaging0005(); |
|
123 virtual TVerdict doTestStepL(); |
|
124 static TPtrC GetTestStepName(); |
|
125 |
|
126 private: |
|
127 |
|
128 }; // class CCTSYIntegrationTestUssdMessaging0005 |
|
129 |
|
130 |
|
131 class CCTSYIntegrationTestUssdMessaging0006 : public CCTSYIntegrationTestUssdMessagingBase |
|
132 { |
|
133 public: |
|
134 |
|
135 CCTSYIntegrationTestUssdMessaging0006(CEtelSessionMgr& aEtelSessionMgr); |
|
136 ~CCTSYIntegrationTestUssdMessaging0006(); |
|
137 virtual TVerdict doTestStepL(); |
|
138 static TPtrC GetTestStepName(); |
|
139 |
|
140 private: |
|
141 |
|
142 }; // class CCTSYIntegrationTestUssdMessaging0006 |
|
143 |
|
144 |
|
145 class CCTSYIntegrationTestUssdMessaging0007 : public CCTSYIntegrationTestUssdMessagingBase |
|
146 { |
|
147 public: |
|
148 |
|
149 CCTSYIntegrationTestUssdMessaging0007(CEtelSessionMgr& aEtelSessionMgr); |
|
150 ~CCTSYIntegrationTestUssdMessaging0007(); |
|
151 virtual TVerdict doTestStepL(); |
|
152 static TPtrC GetTestStepName(); |
|
153 |
|
154 private: |
|
155 |
|
156 }; // class CCTSYIntegrationTestUssdMessaging0007 |
|
157 |
|
158 |
|
159 class CCTSYIntegrationTestUssdMessaging0008 : public CCTSYIntegrationTestUssdMessagingBase |
|
160 { |
|
161 public: |
|
162 |
|
163 CCTSYIntegrationTestUssdMessaging0008(CEtelSessionMgr& aEtelSessionMgr); |
|
164 ~CCTSYIntegrationTestUssdMessaging0008(); |
|
165 virtual TVerdict doTestStepL(); |
|
166 static TPtrC GetTestStepName(); |
|
167 |
|
168 private: |
|
169 |
|
170 }; // class CCTSYIntegrationTestUssdMessaging0008 |
|
171 |
|
172 |
|
173 class CCTSYIntegrationTestUssdMessaging0009 : public CCTSYIntegrationTestUssdMessagingBase |
|
174 { |
|
175 public: |
|
176 |
|
177 CCTSYIntegrationTestUssdMessaging0009(CEtelSessionMgr& aEtelSessionMgr); |
|
178 ~CCTSYIntegrationTestUssdMessaging0009(); |
|
179 virtual TVerdict doTestStepL(); |
|
180 static TPtrC GetTestStepName(); |
|
181 |
|
182 private: |
|
183 |
|
184 }; // class CCTSYIntegrationTestUssdMessaging0009 |
|
185 |
|
186 |
|
187 class CCTSYIntegrationTestUssdMessaging0010 : public CCTSYIntegrationTestUssdMessagingBase |
|
188 { |
|
189 public: |
|
190 |
|
191 CCTSYIntegrationTestUssdMessaging0010(CEtelSessionMgr& aEtelSessionMgr); |
|
192 ~CCTSYIntegrationTestUssdMessaging0010(); |
|
193 virtual TVerdict doTestStepL(); |
|
194 static TPtrC GetTestStepName(); |
|
195 |
|
196 private: |
|
197 |
|
198 }; // class CCTSYIntegrationTestUssdMessaging0010 |
|
199 |
|
200 |
|
201 class CCTSYIntegrationTestUssdMessaging0011 : public CCTSYIntegrationTestUssdMessagingBase |
|
202 { |
|
203 public: |
|
204 |
|
205 CCTSYIntegrationTestUssdMessaging0011(CEtelSessionMgr& aEtelSessionMgr); |
|
206 ~CCTSYIntegrationTestUssdMessaging0011(); |
|
207 virtual TVerdict doTestStepL(); |
|
208 static TPtrC GetTestStepName(); |
|
209 |
|
210 private: |
|
211 |
|
212 }; // class CCTSYIntegrationTestUssdMessaging0011 |
|
213 |
|
214 |
|
215 |
|
216 #endif // __CCTSYINTEGRATIONTESTUSSDMESSAGING_H__ |