author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 31 Aug 2010 16:34:26 +0300 | |
branch | RCL_3 |
changeset 43 | c1f20ce4abcf |
parent 0 | a41df078684a |
child 44 | 3e88ff8f41d5 |
permissions | -rw-r--r-- |
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1 |
// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
0 | 2 |
// All rights reserved. |
3 |
// This component and the accompanying materials are made available |
|
4 |
// under the terms of the License "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 |
// @internalComponent |
|
15 |
// |
|
16 |
// |
|
17 |
||
18 |
#include <e32std.h> |
|
19 |
#include <e32std_private.h> |
|
20 |
#include <u32std.h> // unicode builds |
|
21 |
#include <e32base.h> |
|
22 |
#include <e32base_private.h> |
|
23 |
#include <e32Test.h> // RTest headder |
|
24 |
#include "testcaseroot.h" |
|
25 |
#include "b2bwatchers.h" |
|
26 |
#include "testcase0679.h" |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
27 |
#include "OstTraceDefinitions.h" |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
28 |
#ifdef OST_TRACE_COMPILER_IN_USE |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
29 |
#include "testcase0679Traces.h" |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
30 |
#endif |
0 | 31 |
|
32 |
#define _REPEATS (oOpenIterations*3) |
|
33 |
||
34 |
||
35 |
/* ************************************************************************************** |
|
36 |
* the name below is used to add a pointer to our construction method to a pointer MAP in |
|
37 |
* the class factory |
|
38 |
*/ |
|
39 |
_LIT(KTestCaseId,"PBASE-USB_OTGDI-0679"); |
|
40 |
const TTestCaseFactoryReceipt<CTestCase0679> CTestCase0679::iFactoryReceipt(KTestCaseId); |
|
41 |
||
42 |
CTestCase0679* CTestCase0679::NewL(TBool aHost) |
|
43 |
{ |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
44 |
if(gVerboseOutput) |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
45 |
{ |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
46 |
OstTraceFunctionEntry0(CTESTCASE0679_NEWL); |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
47 |
} |
0 | 48 |
CTestCase0679* self = new (ELeave) CTestCase0679(aHost); |
49 |
CleanupStack::PushL(self); |
|
50 |
self->ConstructL(); |
|
51 |
CleanupStack::Pop(self); |
|
52 |
return self; |
|
53 |
} |
|
54 |
||
55 |
||
56 |
CTestCase0679::CTestCase0679(TBool aHost) |
|
57 |
: CTestCaseB2BRoot(KTestCaseId, aHost, iStatus) |
|
58 |
{ |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
59 |
if(gVerboseOutput) |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
60 |
{ |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
61 |
OstTraceFunctionEntry0(CTESTCASE0679_CTESTCASE0679); |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
62 |
} |
0 | 63 |
|
64 |
} |
|
65 |
||
66 |
||
67 |
/** |
|
68 |
ConstructL |
|
69 |
*/ |
|
70 |
void CTestCase0679::ConstructL() |
|
71 |
{ |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
72 |
if(gVerboseOutput) |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
73 |
{ |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
74 |
OstTraceFunctionEntry0(CTESTCASE0679_CONSTRUCTL); |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
75 |
} |
0 | 76 |
|
77 |
iDualRoleCase = ETrue; // another back-back |
|
78 |
||
79 |
BaseConstructL(); |
|
80 |
} |
|
81 |
||
82 |
||
83 |
CTestCase0679::~CTestCase0679() |
|
84 |
{ |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
85 |
if(gVerboseOutput) |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
86 |
{ |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
87 |
OstTraceFunctionEntry0(CTESTCASE0679_DCTESTCASE0679); |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
88 |
} |
0 | 89 |
iCollector.DestroyObservers(); |
90 |
Cancel(); |
|
91 |
} |
|
92 |
||
93 |
||
94 |
void CTestCase0679::ExecuteTestCaseL() |
|
95 |
{ |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
96 |
if(gVerboseOutput) |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
97 |
{ |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
98 |
OstTraceFunctionEntry0(CTESTCASE0679_EXECUTETESTCASEL); |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
99 |
} |
0 | 100 |
iCaseStep = EPreconditions; |
101 |
CActiveScheduler::Add(this); |
|
102 |
SelfComplete(); |
|
103 |
} |
|
104 |
||
105 |
||
106 |
void CTestCase0679::DoCancel() |
|
107 |
{ |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
108 |
if(gVerboseOutput) |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
109 |
{ |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
110 |
OstTraceFunctionEntry0(CTESTCASE0679_DOCANCEL); |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
111 |
} |
0 | 112 |
// cancel our timer |
113 |
iTimer.Cancel(); |
|
114 |
} |
|
115 |
||
116 |
||
117 |
// handle event completion |
|
118 |
void CTestCase0679::RunStepL() |
|
119 |
{ |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
120 |
if(gVerboseOutput) |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
121 |
{ |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
122 |
OstTraceFunctionEntry0(CTESTCASE0679_RUNSTEPL); |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
123 |
} |
0 | 124 |
// Obtain the completion code for this CActive obj. |
125 |
TInt completionCode(iStatus.Int()); |
|
126 |
TBuf<MAX_DSTRLEN> aDescription; |
|
127 |
TInt err(0); |
|
128 |
||
129 |
switch(iCaseStep) |
|
130 |
{ |
|
131 |
case EPreconditions: |
|
132 |
{ |
|
133 |
LOG_STEPNAME(_L("EPreconditions")) |
|
134 |
iCaseStep = ELoadLdd; |
|
135 |
StepB2BPreconditions(); |
|
136 |
break; |
|
137 |
} |
|
138 |
||
139 |
// 1. Load the Client LDD |
|
140 |
case ELoadLdd: |
|
141 |
{ |
|
142 |
LOG_STEPNAME(_L("ELoadLdd")) |
|
143 |
if (!StepLoadClient(0xF679, EFalse /*no HNP support!*/)) |
|
144 |
{ |
|
145 |
return TestFailed(KErrAbort, _L("Client Load Failure")); |
|
146 |
} |
|
147 |
// load OTG ldd and init. |
|
148 |
if (!StepLoadLDD()) |
|
149 |
{ |
|
150 |
return TestFailed(KErrAbort, _L("OTG Load Failure")); |
|
151 |
} |
|
152 |
||
153 |
if(otgActivateFdfActor()!=KErrNone) |
|
154 |
{ |
|
155 |
return TestFailed(KErrAbort, _L("Couldn't load FDF Actor")); |
|
156 |
} |
|
157 |
||
158 |
// test that the right cable is in |
|
159 |
CheckRoleConnections(); |
|
160 |
||
161 |
// subscribe to OTG states,events and messages now that it has loaded OK |
|
162 |
TRAPD(result, iCollector.CreateObserversL(*this)); |
|
163 |
if (KErrNone != result) |
|
164 |
return(TestFailed(KErrNoMemory, _L("Unable to create observers"))); |
|
165 |
iCollector.ClearAllEvents(); |
|
166 |
iCaseStep = EReadyToRaiseVBus; |
|
167 |
SelfComplete(); |
|
168 |
break; |
|
169 |
} |
|
170 |
||
171 |
case EReadyToRaiseVBus: |
|
172 |
{ |
|
173 |
if (gTestRoleMaster) |
|
174 |
{ |
|
175 |
// wait for Vbus to be raised |
|
176 |
iCollector.AddRequiredNotification(EWatcherState, RUsbOtgDriver::EStateBIdle); |
|
177 |
iCollector.AddRequiredNotification(EWatcherEvent, RUsbOtgDriver::EEventVbusRaised); |
|
178 |
iCollector.AddRequiredNotification(EWatcherState, RUsbOtgDriver::EStateBPeripheral); |
|
179 |
} |
|
180 |
else |
|
181 |
{ // slave "A" |
|
182 |
// Raise VBus, then wait for default role |
|
183 |
err = otgBusRequest(); // ok to turn on VBus now |
|
184 |
if (KErrNone != err) |
|
185 |
{ |
|
186 |
return TestFailed(KErrAbort, _L("Raise Vbus - RUsbOtgDriver::BusRequest() FAILED!")); |
|
187 |
} |
|
188 |
||
189 |
// we might also wait for and EStateAIdle |
|
190 |
iCollector.AddRequiredNotification(EWatcherState, RUsbOtgDriver::EStateAIdle); |
|
191 |
iCollector.AddRequiredNotification(EWatcherEvent, RUsbOtgDriver::EEventVbusRaised); |
|
192 |
iCollector.AddRequiredNotification(EWatcherEvent, RUsbOtgDriver::EEventRoleChangedToHost); |
|
193 |
} |
|
194 |
||
195 |
const TInt KTestCase0679VBusRaiseTimeout = 2000; // 2 seconds, should be plenty of time for this test |
|
196 |
iCollector.AddStepTimeout(KTestCase0679VBusRaiseTimeout); |
|
197 |
||
198 |
iCaseStep = EDefaultRoles; |
|
199 |
SetActive(); |
|
200 |
break; |
|
201 |
} |
|
202 |
||
203 |
case EDefaultRoles: |
|
204 |
{ |
|
205 |
test.Printf(_L("Into EDefaultRoles step...\n")); |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
206 |
OstTrace0(TRACE_NORMAL, CTESTCASE0679_RUNSTEPL_DUP01, "Into EDefaultRoles step...\n"); |
0 | 207 |
LOG_STEPNAME(_L("EWaitEnumeration")); |
208 |
||
209 |
if (gTestRoleMaster) |
|
210 |
{ |
|
211 |
// B-Device should now wait until it is configured |
|
212 |
iCollector.AddRequiredNotification(EWatcherPeripheralState, EUsbcDeviceStateConfigured); |
|
213 |
||
214 |
const TInt KTestCase0679BTimeout = 5000; // 5 seconds, should be plenty of time for overall test |
|
215 |
iCollector.AddStepTimeout(KTestCase0679BTimeout); |
|
216 |
||
217 |
iCaseStep = EBConfigured; |
|
218 |
} |
|
219 |
else |
|
220 |
{ |
|
221 |
// A-Device should expect nothing more (role swap won't happen |
|
222 |
// because the B-Device doesn't indicate support for OTG in its |
|
223 |
// OTG descriptor, so the host won't have sent SetFeature(b_hnp_enable)) |
|
224 |
// Instead, just rely on the test timeout and display a request for the user |
|
225 |
// to observe the B-Device test code for the pass/fail |
|
226 |
const TInt KTestCase0679ATimeout = 4000; // 4 seconds before A-Device drops VBus (before B test times out at 5 seconds) |
|
227 |
iCollector.AddStepTimeout(KTestCase0679ATimeout); // NB. In this test on the A-Device, we expect to timeout |
|
228 |
// so a timeout isn't treated as a failure |
|
229 |
test.Printf(_L("NOTE : Please observe test result on B-Device...\n")); |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
230 |
OstTrace0(TRACE_NORMAL, CTESTCASE0679_RUNSTEPL_DUP02, "NOTE : Please observe test result on B-Device...\n"); |
0 | 231 |
iCaseStep = EDropVBus; // This is the step the A-Device will go to |
232 |
// when the timer (set up in previous test) fires |
|
233 |
} |
|
234 |
SetActive(); |
|
235 |
break; |
|
236 |
} |
|
237 |
||
238 |
||
239 |
case EBConfigured: // A B-Device only step! |
|
240 |
{ |
|
241 |
test.Printf(_L("Into EBConfigured step...\n")); |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
242 |
OstTrace0(TRACE_NORMAL, CTESTCASE0679_RUNSTEPL_DUP03, "Into EBConfigured step...\n"); |
0 | 243 |
if (KTestCaseWatchdogTO == iStatus.Int()) |
244 |
{ |
|
245 |
iCollector.DestroyObservers(); |
|
246 |
return TestFailed(KErrAbort, _L("Timeout")); |
|
247 |
} |
|
248 |
iCollector.AddRequiredNotification(EWatcherPeripheralState, EUsbcDeviceStateSuspended); |
|
249 |
iCaseStep = EBSuspended; |
|
250 |
SetActive(); |
|
251 |
break; |
|
252 |
} |
|
253 |
||
254 |
case EBSuspended: |
|
255 |
{ |
|
256 |
test.Printf(_L("Into EBSuspended step...\n")); |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
257 |
OstTrace0(TRACE_NORMAL, CTESTCASE0679_RUNSTEPL_DUP04, "Into EBSuspended step...\n"); |
0 | 258 |
if (KTestCaseWatchdogTO == iStatus.Int()) |
259 |
{ |
|
260 |
iCollector.DestroyObservers(); |
|
261 |
return TestFailed(KErrAbort, _L("Timeout")); |
|
262 |
} |
|
263 |
||
264 |
// issue HNP |
|
265 |
test.Printf(_L("Attempting a swap on a non-HNP enabled link...\n")); |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
266 |
OstTrace0(TRACE_NORMAL, CTESTCASE0679_RUNSTEPL_DUP05, "Attempting a swap on a non-HNP enabled link...\n"); |
0 | 267 |
iCollector.AddRequiredNotification(EWatcherMessage, RUsbOtgDriver::EMessageHnpNotEnabled); |
268 |
||
269 |
err = otgBusRequest(); // Request the host role |
|
270 |
||
271 |
if (KErrNone != err) |
|
272 |
{ |
|
273 |
test.Printf(_L("BusRequest returned %d)"),err); |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
274 |
OstTrace1(TRACE_NORMAL, CTESTCASE0679_RUNSTEPL_DUP06, "BusRequest returned %d)",err); |
0 | 275 |
//DS Temp! return TestFailed(KErrAbort, _L("BusRequest() failed!")); |
276 |
} |
|
277 |
||
278 |
iCaseStep = EBErrorReceived; |
|
279 |
SetActive(); |
|
280 |
break; |
|
281 |
} |
|
282 |
||
283 |
case EBErrorReceived: |
|
284 |
{ |
|
285 |
test.Printf(_L("Into EBErrorReceived step...\n")); |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
286 |
OstTrace0(TRACE_NORMAL, CTESTCASE0679_RUNSTEPL_DUP07, "Into EBErrorReceived step...\n"); |
0 | 287 |
if (KTestCaseWatchdogTO == iStatus.Int()) |
288 |
{ |
|
289 |
iCollector.DestroyObservers(); |
|
290 |
return TestFailed(KErrAbort, _L("Timeout")); |
|
291 |
} |
|
292 |
iCaseStep = EDropVBus; // Test has pretty much passed now. Just wait for A-Device to drop VBus. |
|
293 |
SelfComplete(); |
|
294 |
break; |
|
295 |
} |
|
296 |
||
297 |
case EDropVBus: |
|
298 |
LOG_STEPNAME(_L("EDropVBus")) |
|
299 |
||
300 |
iCollector.AddRequiredNotification(EWatcherEvent, RUsbOtgDriver::EEventVbusDropped); |
|
301 |
if ( gTestRoleMaster) |
|
302 |
{ |
|
303 |
iCollector.AddRequiredNotification(EWatcherState, RUsbOtgDriver::EStateBIdle); |
|
304 |
} |
|
305 |
else |
|
306 |
{ // SLAVE "A" |
|
307 |
iCollector.AddRequiredNotification(EWatcherState, RUsbOtgDriver::EStateAIdle); |
|
308 |
otgBusDrop(); |
|
309 |
} |
|
310 |
iCaseStep = EVBusDropped; |
|
311 |
SetActive(); |
|
312 |
break; |
|
313 |
||
314 |
case EVBusDropped: |
|
315 |
LOG_STEPNAME(_L("EVBusDropped")) |
|
316 |
if (KTestCaseWatchdogTO == iStatus.Int() && gTestRoleMaster) |
|
317 |
{ |
|
318 |
// Remember, a timeout is only a failure for the B-Device in this test, |
|
319 |
// we're expecting and relying on a timeout on the A-Device to conclude |
|
320 |
// the test and bring VBus down. |
|
321 |
return TestFailed(KErrAbort, _L("Timeout")); |
|
322 |
} |
|
323 |
||
324 |
if (otgVbusPresent()) |
|
325 |
{ |
|
326 |
return TestFailed(KErrAbort, _L("Vbus did not drop - FAILED!")); |
|
327 |
} |
|
328 |
iCaseStep = EUnloadLdd; |
|
329 |
SelfComplete(); |
|
330 |
break; |
|
331 |
||
332 |
case EUnloadLdd: |
|
333 |
LOG_STEPNAME(_L("EUnloadLdd")) |
|
334 |
iCollector.DestroyObservers(); |
|
335 |
otgDeactivateFdfActor(); |
|
336 |
if (EFalse == StepUnloadLDD()) |
|
337 |
return TestFailed(KErrAbort,_L("unload Ldd failure")); |
|
338 |
if (!StepUnloadClient()) |
|
339 |
return TestFailed(KErrAbort,_L("Client Unload Failure")); |
|
340 |
||
341 |
iCaseStep = ELastStep; |
|
342 |
SelfComplete(); |
|
343 |
break; |
|
344 |
||
345 |
case ELastStep: |
|
346 |
LOG_STEPNAME(_L("ELastStep")) |
|
347 |
TestPassed(); |
|
348 |
break; |
|
349 |
||
350 |
default: |
|
351 |
test.Printf(_L("<Error> unknown test step")); |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
352 |
OstTrace0(TRACE_NORMAL, CTESTCASE0679_RUNSTEPL_DUP08, "<Error> unknown test step"); |
0 | 353 |
Cancel(); |
354 |
return (TestFailed(KErrCorrupt, _L("<Error> unknown test step"))); |
|
355 |
} |
|
356 |
} |