author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Thu, 02 Sep 2010 21:54:16 +0300 | |
changeset 259 | 57b9594f5772 |
parent 0 | a41df078684a |
child 257 | 3e88ff8f41d5 |
permissions | -rw-r--r-- |
259
57b9594f5772
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 |
// @file PBASE-T_USBDI-0489.cpp |
|
15 |
// @internalComponent |
|
16 |
// |
|
17 |
// |
|
18 |
||
19 |
#include "PBASE-T_USBDI-0489.h" |
|
20 |
#include "testpolicy.h" |
|
21 |
#include "testdebug.h" |
|
22 |
#include "modelleddevices.h" |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
23 |
#include "OstTraceDefinitions.h" |
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
24 |
#ifdef OST_TRACE_COMPILER_IN_USE |
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
25 |
#include "PBASE-T_USBDI-0489Traces.h" |
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
26 |
#endif |
0 | 27 |
|
28 |
namespace NUnitTesting_USBDI |
|
29 |
{ |
|
30 |
||
31 |
_LIT(KTestCaseId,"PBASE-T_USBDI-0489"); |
|
32 |
const TFunctorTestCase<CUT_PBASE_T_USBDI_0489,TBool> CUT_PBASE_T_USBDI_0489::iFunctor(KTestCaseId); |
|
33 |
||
34 |
CUT_PBASE_T_USBDI_0489* CUT_PBASE_T_USBDI_0489::NewL(TBool aHostRole) |
|
35 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
36 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0489_NEWL_ENTRY, aHostRole ); |
0 | 37 |
CUT_PBASE_T_USBDI_0489* self = new (ELeave) CUT_PBASE_T_USBDI_0489(aHostRole); |
38 |
CleanupStack::PushL(self); |
|
39 |
self->ConstructL(); |
|
40 |
CleanupStack::Pop(self); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
41 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0489_NEWL_EXIT, ( TUint )( self ) ); |
0 | 42 |
return self; |
43 |
} |
|
44 |
||
45 |
||
46 |
CUT_PBASE_T_USBDI_0489::CUT_PBASE_T_USBDI_0489(TBool aHostRole) |
|
47 |
: CBaseTestCase(KTestCaseId,aHostRole), |
|
48 |
iCaseStep(EInProgress) |
|
49 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
50 |
OstTraceFunctionEntryExt( CUT_PBASE_T_USBDI_0489_CUT_PBASE_T_USBDI_0489_ENTRY, this ); |
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
51 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0489_CUT_PBASE_T_USBDI_0489_EXIT, this ); |
0 | 52 |
} |
53 |
||
54 |
||
55 |
void CUT_PBASE_T_USBDI_0489::ConstructL() |
|
56 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
57 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0489_CONSTRUCTL_ENTRY, this ); |
0 | 58 |
iTestDevice = new RUsbDeviceVendor(this); |
59 |
BaseConstructL(); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
60 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0489_CONSTRUCTL_EXIT, this ); |
0 | 61 |
} |
62 |
||
63 |
||
64 |
CUT_PBASE_T_USBDI_0489::~CUT_PBASE_T_USBDI_0489() |
|
65 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
66 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0489_CUT_PBASE_T_USBDI_0489_ENTRY_DUP01, this ); |
0 | 67 |
|
68 |
Cancel(); |
|
69 |
||
70 |
// Close the interface |
|
71 |
iUsbInterface0.Close(); |
|
72 |
||
73 |
delete iControlEp0; |
|
74 |
delete iActorFDF; |
|
75 |
if(!IsHost() && iTestDevice) |
|
76 |
{ |
|
77 |
iTestDevice->Close(); |
|
78 |
} |
|
79 |
delete iTestDevice; |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
80 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0489_CUT_PBASE_T_USBDI_0489_EXIT_DUP01, this ); |
0 | 81 |
} |
82 |
||
83 |
void CUT_PBASE_T_USBDI_0489::ExecuteHostTestCaseL() |
|
84 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
85 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0489_EXECUTEHOSTTESTCASEL_ENTRY, this ); |
0 | 86 |
|
87 |
// Create the actor for the Function Driver Framework |
|
88 |
||
89 |
iActorFDF = CActorFDF::NewL(*this); |
|
90 |
||
91 |
// Create the control transfer for requests |
|
92 |
||
93 |
iControlEp0 = new (ELeave) CEp0Transfer(iUsbInterface0); |
|
94 |
||
95 |
// Monitor for devices |
|
96 |
||
97 |
iActorFDF->Monitor(); |
|
98 |
||
99 |
// Start the connection timeout timer |
|
100 |
||
101 |
TimeoutIn(30); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
102 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0489_EXECUTEHOSTTESTCASEL_EXIT, this ); |
0 | 103 |
} |
104 |
||
105 |
||
106 |
void CUT_PBASE_T_USBDI_0489::ExecuteDeviceTestCaseL() |
|
107 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
108 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0489_EXECUTEDEVICETESTCASEL_ENTRY, this ); |
0 | 109 |
|
110 |
// Create the test device |
|
111 |
||
112 |
iTestDevice->OpenL(TestCaseId()); |
|
113 |
iTestDevice->SubscribeToReports(iStatus); |
|
114 |
SetActive(); |
|
115 |
||
116 |
// Connect the device to the host |
|
117 |
||
118 |
iTestDevice->SoftwareConnect(); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
119 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0489_EXECUTEDEVICETESTCASEL_EXIT, this ); |
0 | 120 |
} |
121 |
||
122 |
||
123 |
void CUT_PBASE_T_USBDI_0489::HostDoCancel() |
|
124 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
125 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0489_HOSTDOCANCEL_ENTRY, this ); |
0 | 126 |
|
127 |
// Cancel the test step action timeout timer |
|
128 |
||
129 |
CancelTimeout(); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
130 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0489_HOSTDOCANCEL_EXIT, this ); |
0 | 131 |
} |
132 |
||
133 |
||
134 |
void CUT_PBASE_T_USBDI_0489::DeviceDoCancel() |
|
135 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
136 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0489_DEVICEDOCANCEL_ENTRY, this ); |
0 | 137 |
|
138 |
// Cancel the device (the activity timer and the error reporting) |
|
139 |
||
140 |
iTestDevice->CancelSubscriptionToReports(); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
141 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0489_DEVICEDOCANCEL_EXIT, this ); |
0 | 142 |
} |
143 |
||
144 |
||
145 |
void CUT_PBASE_T_USBDI_0489::DeviceStateChangeL(RUsbDevice::TDeviceState aPreviousState, |
|
146 |
RUsbDevice::TDeviceState aNewState,TInt aCompletionCode) |
|
147 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
148 |
OstTraceFunctionEntryExt( CUT_PBASE_T_USBDI_0489_DEVICESTATECHANGEL_ENTRY, this ); |
0 | 149 |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
150 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0489_DEVICESTATECHANGEL_EXIT, this ); |
0 | 151 |
} |
152 |
||
153 |
||
154 |
void CUT_PBASE_T_USBDI_0489::DeviceInsertedL(TUint aDeviceHandle) |
|
155 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
156 |
OstTraceFunctionEntryExt( CUT_PBASE_T_USBDI_0489_DEVICEINSERTEDL_ENTRY, this ); |
0 | 157 |
|
158 |
// Cancel the timeout timer |
|
159 |
||
160 |
Cancel(); |
|
161 |
||
162 |
TInt err(KErrNone); |
|
163 |
||
164 |
// Validate that device is as expected |
|
165 |
||
166 |
CUsbTestDevice& testDevice = iActorFDF->DeviceL(aDeviceHandle); |
|
167 |
if(testDevice.SerialNumber().Compare(TestCaseId()) != 0) |
|
168 |
{ |
|
169 |
// Incorrect device for this test case |
|
170 |
||
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
171 |
OstTraceExt3(TRACE_NORMAL, CUT_PBASE_T_USBDI_0489_DEVICEINSERTEDL, "<Warning %d> Incorrect device serial number (%S) connected for this test case (%S)", |
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
172 |
KErrNotFound,testDevice.SerialNumber(),TestCaseId()); |
0 | 173 |
|
174 |
// Start the connection timeout again |
|
175 |
||
176 |
TimeoutIn(30); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
177 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0489_DEVICEINSERTEDL_EXIT, this ); |
0 | 178 |
return; |
179 |
} |
|
180 |
||
181 |
// Get the token for the interface |
|
182 |
||
183 |
err = testDevice.Device().GetTokenForInterface(0,iToken0); |
|
184 |
if(err != KErrNone) |
|
185 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
186 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0489_DEVICEINSERTEDL_DUP01, "<Error %d> Unable to retrieve token for interface 0",err); |
0 | 187 |
TestFailed(err); |
188 |
} |
|
189 |
||
190 |
// Open the interface |
|
191 |
err = iUsbInterface0.Open(iToken0); |
|
192 |
if(err != KErrNone) |
|
193 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
194 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0489_DEVICEINSERTEDL_DUP02, "<Error %d> Unable to open interface 0", err); |
0 | 195 |
TestFailed(err); |
196 |
} |
|
197 |
||
198 |
||
199 |
// Send a request to control endpoint 0 to continuously NAK the request |
|
200 |
||
201 |
iCaseStep = EInProgress; |
|
202 |
TNakRequest request(0); |
|
203 |
iControlEp0->SendRequest(request,this); |
|
204 |
||
205 |
// Wait 1 second then cancel EP0 transfer |
|
206 |
User::After(1000000); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
207 |
OstTrace0(TRACE_NORMAL, CUT_PBASE_T_USBDI_0489_DEVICEINSERTEDL_DUP03, "Cancelling EP0 transfer"); |
0 | 208 |
iUsbInterface0.CancelEP0Transfer(); |
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
209 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0489_DEVICEINSERTEDL_EXIT_DUP01, this ); |
0 | 210 |
} |
211 |
||
212 |
void CUT_PBASE_T_USBDI_0489::Ep0TransferCompleteL(TInt aCompletionCode) |
|
213 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
214 |
OstTraceFunctionEntryExt( CUT_PBASE_T_USBDI_0489_EP0TRANSFERCOMPLETEL_ENTRY, this ); |
0 | 215 |
|
216 |
switch(iCaseStep) |
|
217 |
{ |
|
218 |
case EInProgress: |
|
219 |
{ |
|
220 |
if(aCompletionCode != KErrCancel) |
|
221 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
222 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0489_EP0TRANSFERCOMPLETEL, "<Error %d> Nakking request was not cancelled by stack",aCompletionCode); |
0 | 223 |
return TestFailed(aCompletionCode); |
224 |
} |
|
225 |
||
226 |
// No panic or leave so passed |
|
227 |
||
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
228 |
OstTrace0(TRACE_NORMAL, CUT_PBASE_T_USBDI_0489_EP0TRANSFERCOMPLETEL_DUP01, "No leave or panic occured so open interface again and send test passed"); |
0 | 229 |
|
230 |
// Open the interface |
|
231 |
/*TODO DMA TInt err(iUsbInterface0.Open(iToken0)); |
|
232 |
if(err != KErrNone) |
|
233 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
234 |
OstTrace0(TRACE_NORMAL, CUT_PBASE_T_USBDI_0489_EP0TRANSFERCOMPLETEL_DUP02, "<Error %d> Unable to open interface 0")); |
0 | 235 |
return TestFailed(err); |
236 |
} |
|
237 |
||
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
238 |
OstTrace0(TRACE_NORMAL, CUT_PBASE_T_USBDI_0489_EP0TRANSFERCOMPLETEL_DUP03, "Interface 0 re-opened"));*/ |
0 | 239 |
|
240 |
iCaseStep = EPassed; |
|
241 |
TTestCasePassed request; |
|
242 |
iControlEp0->SendRequest(request,this); |
|
243 |
} |
|
244 |
break; |
|
245 |
||
246 |
case EPassed: |
|
247 |
TestPassed(); |
|
248 |
break; |
|
249 |
||
250 |
case EFailed: |
|
251 |
default: |
|
252 |
TestFailed(KErrCompletion); |
|
253 |
break; |
|
254 |
} |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
255 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0489_EP0TRANSFERCOMPLETEL_EXIT, this ); |
0 | 256 |
} |
257 |
||
258 |
void CUT_PBASE_T_USBDI_0489::DeviceRemovedL(TUint aDeviceHandle) |
|
259 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
260 |
OstTraceFunctionEntryExt( CUT_PBASE_T_USBDI_0489_DEVICEREMOVEDL_ENTRY, this ); |
0 | 261 |
|
262 |
// The test device should not be removed until the test case has passed |
|
263 |
// so this test case has not completed, and state this event as an error |
|
264 |
||
265 |
TestFailed(KErrDisconnected); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
266 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0489_DEVICEREMOVEDL_EXIT, this ); |
0 | 267 |
} |
268 |
||
269 |
||
270 |
void CUT_PBASE_T_USBDI_0489::BusErrorL(TInt aError) |
|
271 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
272 |
OstTraceFunctionEntryExt( CUT_PBASE_T_USBDI_0489_BUSERRORL_ENTRY, this ); |
0 | 273 |
|
274 |
// This test case handles no failiures on the bus |
|
275 |
||
276 |
TestFailed(aError); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
277 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0489_BUSERRORL_EXIT, this ); |
0 | 278 |
} |
279 |
||
280 |
||
281 |
void CUT_PBASE_T_USBDI_0489::HostRunL() |
|
282 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
283 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0489_HOSTRUNL_ENTRY, this ); |
0 | 284 |
|
285 |
// Obtain the completion code |
|
286 |
TInt completionCode(iStatus.Int()); |
|
287 |
||
288 |
if(completionCode == KErrNone) |
|
289 |
{ |
|
290 |
// Action timeout |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
291 |
OstTrace0(TRACE_NORMAL, CUT_PBASE_T_USBDI_0489_HOSTRUNL, "<Error> Action timeout"); |
0 | 292 |
TestFailed(KErrTimedOut); |
293 |
} |
|
294 |
else |
|
295 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
296 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0489_HOSTRUNL_DUP01, "<Error %d> Timeout timer could not complete",completionCode); |
0 | 297 |
TestFailed(completionCode); |
298 |
} |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
299 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0489_HOSTRUNL_EXIT, this ); |
0 | 300 |
} |
301 |
||
302 |
/** |
|
303 |
Called when the device has reported any kind of error in its opertaion |
|
304 |
or when the device has been informed by the host to report success |
|
305 |
*/ |
|
306 |
void CUT_PBASE_T_USBDI_0489::DeviceRunL() |
|
307 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
308 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0489_DEVICERUNL_ENTRY, this ); |
0 | 309 |
|
310 |
// Disconnect the device |
|
311 |
||
312 |
iTestDevice->SoftwareDisconnect(); |
|
313 |
||
314 |
// Complete the test case request |
|
315 |
||
316 |
TestPolicy().SignalTestComplete(iStatus.Int()); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
317 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0489_DEVICERUNL_EXIT, this ); |
0 | 318 |
} |
319 |
||
320 |
||
321 |
} |