748
|
1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
872
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
748
|
5 |
// which accompanies this distribution, and is available
|
872
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
748
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// ctlbsclientportedserver.cpp
|
|
15 |
// Test server for ported client tests
|
|
16 |
//
|
|
17 |
//
|
|
18 |
|
|
19 |
#include "ctlbsclientportedsuiteserver.h"
|
|
20 |
#include "ctlbsclientpostp1.h"
|
|
21 |
#include "ctlbsclientpostp2.h"
|
|
22 |
#include "ctlbsclientpostp11.h"
|
|
23 |
#include "ctlbsclientpostp17.h"
|
|
24 |
#include "ctlbsclientpostp21.h"
|
|
25 |
#include "ctlbsclientpostp22.h"
|
|
26 |
#include "ctlbsclientpostp25.h"
|
|
27 |
#include "ctlbsclientpostp27.h"
|
|
28 |
#include "ctlbsclientpostp76.h"
|
|
29 |
#include "ctlbsclientpostp93.h"
|
|
30 |
#include "ctlbsclientpostp169.h"
|
|
31 |
#include "ctlbsclientpostp173.h"
|
|
32 |
#include "ctlbsclientpostp176.h"
|
|
33 |
#include "ctlbsclientpostp178.h"
|
|
34 |
#include "ctlbsclientpostp179.h"
|
|
35 |
#include "ctlbsclientpostp188.h"
|
|
36 |
#include "ctlbsclientpostp189.h"
|
|
37 |
#include "ctlbsclientpostp193.h"
|
|
38 |
#include "ctlbsclientpostp194.h"
|
|
39 |
#include "ctlbsclientpostp195.h"
|
|
40 |
#include "ctlbsclientpostp201.h"
|
|
41 |
#include "ctlbsclientpostp203.h"
|
|
42 |
#include "ctlbsclientpostp204.h"
|
|
43 |
#include "ctlbsclientpostp208.h"
|
|
44 |
#include "ctlbsclientpostp213.h"
|
|
45 |
#include "ctlbsclientpostp217.h"
|
|
46 |
#include "ctlbsclientpostp218.h"
|
|
47 |
#include "ctlbsclientpostp222.h"
|
|
48 |
#include "ctlbsclientpostp223.h"
|
|
49 |
#include "ctlbsclientpostp224.h"
|
|
50 |
#include "ctlbsclientpostp227.h"
|
|
51 |
#include "ctlbsclientpostp254.h"
|
|
52 |
#include "ctlbsclientpostp256.h"
|
|
53 |
#include "ctlbsclientpostp257.h"
|
|
54 |
#include "ctlbsclientpostp259.h"
|
|
55 |
#include "ctlbsclientpostp261.h"
|
|
56 |
#include "ctlbsclientpostp269.h"
|
|
57 |
#include "ctlbsclientpostp271.h"
|
|
58 |
#include "ctlbsclientpostp272.h"
|
|
59 |
#include "ctlbsclientpostp274.h"
|
|
60 |
#include "ctlbsclientpostp275.h"
|
|
61 |
#include "ctlbsclientpostp4701.h"
|
|
62 |
#include "ctlbsclientpostp4702.h"
|
|
63 |
#include "ctlbsclientpostp4703.h"
|
|
64 |
#include "ctlbsclientpostp4704.h"
|
|
65 |
#include "ctlbsclientpostp4705.h"
|
|
66 |
#include "ctlbsclientpostp4706.h"
|
|
67 |
#include "ctlbsclientpostp4707.h"
|
|
68 |
#include "ctlbsclientpostp4708.h"
|
|
69 |
#include "ctlbsclientpostp4709.h"
|
|
70 |
#include "ctlbsclientpostp4722.h"
|
|
71 |
#include "ctlbsclientpostp4723.h"
|
|
72 |
|
|
73 |
_LIT(KServerName,"te_LbsPortedSuite");
|
|
74 |
CT_LbsClientPortedSuite* CT_LbsClientPortedSuite::NewL()
|
|
75 |
/**
|
|
76 |
* @return - Instance of the test server
|
|
77 |
* Same code for Secure and non-secure variants
|
|
78 |
* Called inside the MainL() function to create and start the
|
|
79 |
* CTestServer derived server.
|
|
80 |
*/
|
|
81 |
{
|
|
82 |
CT_LbsClientPortedSuite * server = new (ELeave) CT_LbsClientPortedSuite();
|
|
83 |
CleanupStack::PushL(server);
|
|
84 |
|
|
85 |
server->ConstructL(KServerName);
|
|
86 |
CleanupStack::Pop(server);
|
|
87 |
return server;
|
|
88 |
}
|
|
89 |
|
|
90 |
|
|
91 |
// Secure variants much simpler
|
|
92 |
// For EKA2, just an E32Main and a MainL()
|
|
93 |
LOCAL_C void MainL()
|
|
94 |
/**
|
|
95 |
* Secure variant
|
|
96 |
* Much simpler, uses the new Rendezvous() call to sync with the client
|
|
97 |
*/
|
|
98 |
{
|
|
99 |
// Leave the hooks in for platform security
|
|
100 |
#if (defined __DATA_CAGING__)
|
|
101 |
RProcess().DataCaging(RProcess::EDataCagingOn);
|
|
102 |
RProcess().DataCaging(RProcess::ESecureApiOn);
|
|
103 |
#endif
|
|
104 |
CActiveScheduler* sched=NULL;
|
|
105 |
sched=new(ELeave) CActiveScheduler;
|
|
106 |
CActiveScheduler::Install(sched);
|
|
107 |
CT_LbsClientPortedSuite* server = NULL;
|
|
108 |
// Create the CTestServer derived server
|
|
109 |
TRAPD(err,server = CT_LbsClientPortedSuite::NewL());
|
|
110 |
if(!err)
|
|
111 |
{
|
|
112 |
// Sync with the client and enter the active scheduler
|
|
113 |
RProcess::Rendezvous(KErrNone);
|
|
114 |
sched->Start();
|
|
115 |
}
|
|
116 |
delete server;
|
|
117 |
delete sched;
|
|
118 |
}
|
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
GLDEF_C TInt E32Main()
|
|
123 |
/**
|
|
124 |
* @return - Standard Epoc error code on process exit
|
|
125 |
* Secure variant only
|
|
126 |
* Process entry point. Called by client using RProcess API
|
|
127 |
*/
|
|
128 |
{
|
|
129 |
__UHEAP_MARK;
|
|
130 |
CTrapCleanup* cleanup = CTrapCleanup::New();
|
|
131 |
if(cleanup == NULL)
|
|
132 |
{
|
|
133 |
return KErrNoMemory;
|
|
134 |
}
|
|
135 |
TRAPD(err,MainL());
|
|
136 |
delete cleanup;
|
|
137 |
__UHEAP_MARKEND;
|
|
138 |
return err;
|
|
139 |
}
|
|
140 |
|
|
141 |
|
|
142 |
CTestStep* CT_LbsClientPortedSuite::CreateTestStep(const TDesC& aStepName)
|
|
143 |
/**
|
|
144 |
* @return - A CTestStep derived instance
|
|
145 |
* Secure and non-secure variants
|
|
146 |
* Implementation of CTestServer pure virtual
|
|
147 |
*/
|
|
148 |
{
|
|
149 |
CTestStep* testStep = NULL;
|
|
150 |
|
|
151 |
if(aStepName == KTestProcedure1)
|
|
152 |
{
|
|
153 |
testStep = new CT_LbsClientPosTp1(*this);
|
|
154 |
}
|
|
155 |
if(aStepName == KTestProcedure2)
|
|
156 |
{
|
|
157 |
testStep = new CT_LbsClientPosTp2(*this);
|
|
158 |
}
|
|
159 |
if(aStepName == KTestProcedure11)
|
|
160 |
{
|
|
161 |
testStep = new CT_LbsClientPosTp11(*this);
|
|
162 |
}
|
|
163 |
if(aStepName == KTestProcedure17)
|
|
164 |
{
|
|
165 |
testStep = new CT_LbsClientPosTp17(*this);
|
|
166 |
}
|
|
167 |
if(aStepName == KTestProcedure21)
|
|
168 |
{
|
|
169 |
testStep = new CT_LbsClientPosTp21(*this);
|
|
170 |
}
|
|
171 |
if(aStepName ==KTestProcedure22)
|
|
172 |
{
|
|
173 |
testStep = new CT_LbsClientPosTp22(*this);
|
|
174 |
}
|
|
175 |
if(aStepName == KTestProcedure25)
|
|
176 |
{
|
|
177 |
testStep = new CT_LbsClientPosTp25(*this);
|
|
178 |
}
|
|
179 |
if(aStepName == KTestProcedure27)
|
|
180 |
{
|
|
181 |
testStep = new CT_LbsClientPosTp27(*this);
|
|
182 |
}
|
|
183 |
if(aStepName == KTestProcedure76)
|
|
184 |
{
|
|
185 |
testStep = new CT_LbsClientPosTp76(*this);
|
|
186 |
}
|
|
187 |
if(aStepName == KTestProcedure93)
|
|
188 |
{
|
|
189 |
testStep = new CT_LbsClientPosTp93(*this);
|
|
190 |
}
|
|
191 |
if(aStepName == KTestProcedure169)
|
|
192 |
{
|
|
193 |
testStep = new CT_LbsClientPosTp169(*this);
|
|
194 |
}
|
|
195 |
if(aStepName == KTestProcedure173)
|
|
196 |
{
|
|
197 |
testStep = new CT_LbsClientPosTp173(*this);
|
|
198 |
}
|
|
199 |
if(aStepName == KTestProcedure176)
|
|
200 |
{
|
|
201 |
testStep = new CT_LbsClientPosTp176(*this);
|
|
202 |
}
|
|
203 |
if(aStepName == KTestProcedure178)
|
|
204 |
{
|
|
205 |
testStep = new CT_LbsClientPosTp178(*this);
|
|
206 |
}
|
|
207 |
if(aStepName == KTestProcedure179)
|
|
208 |
{
|
|
209 |
testStep = new CT_LbsClientPosTp179(*this);
|
|
210 |
}
|
|
211 |
if(aStepName == KTestProcedure188)
|
|
212 |
{
|
|
213 |
testStep = new CT_LbsClientPosTp188(*this);
|
|
214 |
}
|
|
215 |
if(aStepName == KTestProcedure189)
|
|
216 |
{
|
|
217 |
testStep = new CT_LbsClientPosTp189(*this);
|
|
218 |
}
|
|
219 |
if(aStepName == KTestProcedure193)
|
|
220 |
{
|
|
221 |
testStep = new CT_LbsClientPosTp193(*this);
|
|
222 |
}
|
|
223 |
if(aStepName == KTestProcedure194)
|
|
224 |
{
|
|
225 |
testStep = new CT_LbsClientPosTp194(*this);
|
|
226 |
}
|
|
227 |
if(aStepName == KTestProcedure195)
|
|
228 |
{
|
|
229 |
testStep = new CT_LbsClientPosTp195(*this);
|
|
230 |
}
|
|
231 |
if(aStepName == KTestProcedure201)
|
|
232 |
{
|
|
233 |
testStep = new CT_LbsClientPosTp201(*this);
|
|
234 |
}
|
|
235 |
if(aStepName == KTestProcedure203)
|
|
236 |
{
|
|
237 |
testStep = new CT_LbsClientPosTp203(*this);
|
|
238 |
}
|
|
239 |
if(aStepName == KTestProcedure204)
|
|
240 |
{
|
|
241 |
testStep = new CT_LbsClientPosTp204(*this);
|
|
242 |
}
|
|
243 |
if(aStepName == KTestProcedure208)
|
|
244 |
{
|
|
245 |
testStep = new CT_LbsClientPosTp208(*this);
|
|
246 |
}
|
|
247 |
if(aStepName == KTestProcedure213)
|
|
248 |
{
|
|
249 |
testStep = new CT_LbsClientPosTp213(*this);
|
|
250 |
}
|
|
251 |
if(aStepName == KTestProcedure217)
|
|
252 |
{
|
|
253 |
testStep = new CT_LbsClientPosTp217(*this);
|
|
254 |
}
|
|
255 |
if(aStepName == KTestProcedure218)
|
|
256 |
{
|
|
257 |
testStep = new CT_LbsClientPosTp218(*this);
|
|
258 |
}
|
|
259 |
if(aStepName == KTestProcedure222)
|
|
260 |
{
|
|
261 |
testStep = new CT_LbsClientPosTp222(*this);
|
|
262 |
}
|
|
263 |
if(aStepName == KTestProcedure223)
|
|
264 |
{
|
|
265 |
testStep = new CT_LbsClientPosTp223(*this);
|
|
266 |
}
|
|
267 |
if(aStepName == KTestProcedure224)
|
|
268 |
{
|
|
269 |
testStep = new CT_LbsClientPosTp224(*this);
|
|
270 |
}
|
|
271 |
if(aStepName == KTestProcedure227)
|
|
272 |
{
|
|
273 |
testStep = new CT_LbsClientPosTp227(*this);
|
|
274 |
}
|
|
275 |
if(aStepName == KTestProcedure254)
|
|
276 |
{
|
|
277 |
testStep = new CT_LbsClientPosTp254(*this);
|
|
278 |
}
|
|
279 |
if(aStepName == KTestProcedure256)
|
|
280 |
{
|
|
281 |
testStep = new CT_LbsClientPosTp256(*this);
|
|
282 |
}
|
|
283 |
if(aStepName == KTestProcedure257)
|
|
284 |
{
|
|
285 |
testStep = new CT_LbsClientPosTp257(*this);
|
|
286 |
}
|
|
287 |
if(aStepName == KTestProcedure259)
|
|
288 |
{
|
|
289 |
testStep = new CT_LbsClientPosTp259(*this);
|
|
290 |
}
|
|
291 |
if(aStepName == KTestProcedure261)
|
|
292 |
{
|
|
293 |
testStep = new CT_LbsClientPosTp261(*this);
|
|
294 |
}
|
|
295 |
if(aStepName == KTestProcedure269)
|
|
296 |
{
|
|
297 |
testStep = new CT_LbsClientPosTp269(*this);
|
|
298 |
}
|
|
299 |
if(aStepName == KTestProcedure271)
|
|
300 |
{
|
|
301 |
testStep = new CT_LbsClientPosTp271(*this);
|
|
302 |
}
|
|
303 |
if(aStepName == KTestProcedure272)
|
|
304 |
{
|
|
305 |
testStep = new CT_LbsClientPosTp272(*this);
|
|
306 |
}
|
|
307 |
if(aStepName == KTestProcedure274)
|
|
308 |
{
|
|
309 |
testStep = new CT_LbsClientPosTp274(*this);
|
|
310 |
}
|
|
311 |
if(aStepName == KTestProcedure275)
|
|
312 |
{
|
|
313 |
testStep = new CT_LbsClientPosTp275(*this);
|
|
314 |
}
|
|
315 |
if(aStepName == KTestProcedure4701)
|
|
316 |
{
|
|
317 |
testStep = new CT_LbsClientPosTp4701(*this);
|
|
318 |
}
|
|
319 |
if(aStepName == KTestProcedure4702)
|
|
320 |
{
|
|
321 |
testStep = new CT_LbsClientPosTp4702(*this);
|
|
322 |
}
|
|
323 |
if(aStepName == KTestProcedure4703)
|
|
324 |
{
|
|
325 |
testStep = new CT_LbsClientPosTp4703(*this);
|
|
326 |
}
|
|
327 |
if(aStepName == KTestProcedure4704)
|
|
328 |
{
|
|
329 |
testStep = new CT_LbsClientPosTp4704(*this);
|
|
330 |
}
|
|
331 |
if(aStepName == KTestProcedure4705)
|
|
332 |
{
|
|
333 |
testStep = new CT_LbsClientPosTp4705(*this);
|
|
334 |
}
|
|
335 |
if(aStepName == KTestProcedure4706)
|
|
336 |
{
|
|
337 |
testStep = new CT_LbsClientPosTp4706(*this);
|
|
338 |
}
|
|
339 |
if(aStepName == KTestProcedure4707)
|
|
340 |
{
|
|
341 |
testStep = new CT_LbsClientPosTp4707(*this);
|
|
342 |
}
|
|
343 |
if(aStepName == KTestProcedure4708)
|
|
344 |
{
|
|
345 |
testStep = new CT_LbsClientPosTp4708(*this);
|
|
346 |
}
|
|
347 |
if(aStepName == KTestProcedure4709)
|
|
348 |
{
|
|
349 |
testStep = new CT_LbsClientPosTp4709(*this);
|
|
350 |
}
|
|
351 |
if(aStepName == KTestProcedure4722)
|
|
352 |
{
|
|
353 |
testStep = new CT_LbsClientPosTp4722(*this);
|
|
354 |
}
|
|
355 |
if(aStepName == KTestProcedure4723)
|
|
356 |
{
|
|
357 |
testStep = new CT_LbsClientPosTp4723(*this);
|
|
358 |
}
|
|
359 |
return testStep;
|
|
360 |
}
|