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-0483.cpp |
|
15 |
// @internalComponent |
|
16 |
// |
|
17 |
// |
|
18 |
||
19 |
#include "PBASE-T_USBDI-0483.h" |
|
20 |
#include "testpolicy.h" |
|
21 |
#include "modelleddevices.h" |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
22 |
#include "OstTraceDefinitions.h" |
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
23 |
#ifdef OST_TRACE_COMPILER_IN_USE |
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
24 |
#include "PBASE-T_USBDI-0483Traces.h" |
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
25 |
#endif |
0 | 26 |
|
27 |
||
28 |
namespace NUnitTesting_USBDI |
|
29 |
{ |
|
30 |
const TInt KGetConfigDescriptor = 0x0200; |
|
31 |
_LIT(KTestCaseId,"PBASE-T_USBDI-0483"); |
|
32 |
const TFunctorTestCase<CUT_PBASE_T_USBDI_0483,TBool> CUT_PBASE_T_USBDI_0483::iFunctor(KTestCaseId); |
|
33 |
||
34 |
CUT_PBASE_T_USBDI_0483* CUT_PBASE_T_USBDI_0483::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_0483_NEWL_ENTRY, aHostRole ); |
0 | 37 |
CUT_PBASE_T_USBDI_0483* self = new (ELeave) CUT_PBASE_T_USBDI_0483(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_0483_NEWL_EXIT, ( TUint )( self ) ); |
0 | 42 |
return self; |
43 |
} |
|
44 |
||
45 |
||
46 |
CUT_PBASE_T_USBDI_0483::CUT_PBASE_T_USBDI_0483(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_0483_CUT_PBASE_T_USBDI_0483_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_0483_CUT_PBASE_T_USBDI_0483_EXIT, this ); |
0 | 52 |
} |
53 |
||
54 |
||
55 |
void CUT_PBASE_T_USBDI_0483::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_0483_CONSTRUCTL_ENTRY, this ); |
0 | 58 |
iTestDevice = new RUsbDeviceB(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_0483_CONSTRUCTL_EXIT, this ); |
0 | 61 |
} |
62 |
||
63 |
||
64 |
CUT_PBASE_T_USBDI_0483::~CUT_PBASE_T_USBDI_0483() |
|
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_0483_CUT_PBASE_T_USBDI_0483_ENTRY_DUP01, this ); |
0 | 67 |
Cancel(); |
68 |
||
69 |
// Close the interface |
|
70 |
iUsbInterface0.Close(); |
|
71 |
||
72 |
delete iActorFDF; |
|
73 |
delete iConfigDescriptorData; |
|
74 |
if(!IsHost() && iTestDevice) |
|
75 |
{ |
|
76 |
iTestDevice->Close(); |
|
77 |
} |
|
78 |
delete iTestDevice; |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
79 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0483_CUT_PBASE_T_USBDI_0483_EXIT_DUP01, this ); |
0 | 80 |
} |
81 |
||
82 |
void CUT_PBASE_T_USBDI_0483::ExecuteHostTestCaseL() |
|
83 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
84 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0483_EXECUTEHOSTTESTCASEL_ENTRY, this ); |
0 | 85 |
|
86 |
// Create the actor for the Function Driver Framework |
|
87 |
||
88 |
iActorFDF = CActorFDF::NewL(*this); |
|
89 |
||
90 |
// Create the control transfer for requests |
|
91 |
||
92 |
iControlEp0 = new (ELeave) CEp0Transfer(iUsbInterface0); |
|
93 |
||
94 |
// Monitor for devices |
|
95 |
||
96 |
iActorFDF->Monitor(); |
|
97 |
||
98 |
// Start the connection timeout timer |
|
99 |
||
100 |
TimeoutIn(30); |
|
101 |
||
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
102 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0483_EXECUTEHOSTTESTCASEL_EXIT, this ); |
0 | 103 |
} |
104 |
||
105 |
void CUT_PBASE_T_USBDI_0483::HostDoCancel() |
|
106 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
107 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0483_HOSTDOCANCEL_ENTRY, this ); |
0 | 108 |
|
109 |
// Cancel the test step timeout timer |
|
110 |
||
111 |
CancelTimeout(); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
112 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0483_HOSTDOCANCEL_EXIT, this ); |
0 | 113 |
} |
114 |
||
115 |
||
116 |
void CUT_PBASE_T_USBDI_0483::ExecuteDeviceTestCaseL() |
|
117 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
118 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0483_EXECUTEDEVICETESTCASEL_ENTRY, this ); |
0 | 119 |
|
120 |
// Create the test device |
|
121 |
||
122 |
iTestDevice->OpenL(TestCaseId()); |
|
123 |
iTestDevice->SubscribeToReports(iStatus); |
|
124 |
SetActive(); |
|
125 |
||
126 |
// Connect the device to the host |
|
127 |
||
128 |
iTestDevice->SoftwareConnect(); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
129 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0483_EXECUTEDEVICETESTCASEL_EXIT, this ); |
0 | 130 |
} |
131 |
||
132 |
||
133 |
void CUT_PBASE_T_USBDI_0483::DeviceDoCancel() |
|
134 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
135 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0483_DEVICEDOCANCEL_ENTRY, this ); |
0 | 136 |
|
137 |
// Cancel the reporting or errors from opertaions perfomed by the test device |
|
138 |
||
139 |
iTestDevice->CancelSubscriptionToReports(); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
140 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0483_DEVICEDOCANCEL_EXIT, this ); |
0 | 141 |
} |
142 |
||
143 |
||
144 |
void CUT_PBASE_T_USBDI_0483::DeviceStateChangeL(RUsbDevice::TDeviceState aPreviousState, |
|
145 |
RUsbDevice::TDeviceState aNewState,TInt aCompletionCode) |
|
146 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
147 |
OstTraceFunctionEntryExt( CUT_PBASE_T_USBDI_0483_DEVICESTATECHANGEL_ENTRY, this ); |
0 | 148 |
|
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_0483_DEVICESTATECHANGEL_EXIT, this ); |
0 | 151 |
} |
152 |
||
153 |
void CUT_PBASE_T_USBDI_0483::Ep0TransferCompleteL(TInt aCompletionCode) |
|
154 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
155 |
OstTraceFunctionEntryExt( CUT_PBASE_T_USBDI_0483_EP0TRANSFERCOMPLETEL_ENTRY, this ); |
0 | 156 |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
157 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0483_EP0TRANSFERCOMPLETEL, "Ep0TransferCompleteL with aCompletionCode = %d",aCompletionCode); |
0 | 158 |
|
159 |
if(aCompletionCode != KErrNone) |
|
160 |
{ |
|
161 |
if(iCaseStep == EFailed) |
|
162 |
{// todo, cope with errors |
|
163 |
} |
|
164 |
else |
|
165 |
{ |
|
166 |
TBuf<256> msg; |
|
167 |
msg.Format(_L("<Error %d> Transfer to control endpoint 0 was not successful"),aCompletionCode); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
168 |
OstTrace0(TRACE_NORMAL, CUT_PBASE_T_USBDI_0483_EP0TRANSFERCOMPLETEL_DUP01, msg); |
0 | 169 |
iCaseStep = EFailed; |
170 |
TTestCaseFailed request(aCompletionCode,msg); |
|
171 |
iControlEp0->SendRequest(request,this); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
172 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0483_EP0TRANSFERCOMPLETEL_EXIT, this ); |
0 | 173 |
return; |
174 |
} |
|
175 |
} |
|
176 |
||
177 |
switch(iCaseStep) |
|
178 |
{ |
|
179 |
// Test case passed |
|
180 |
||
181 |
case EPassed: |
|
182 |
TestPassed(); |
|
183 |
break; |
|
184 |
||
185 |
// Test case failed |
|
186 |
||
187 |
case EFailed: |
|
188 |
TestFailed(KErrCompletion); |
|
189 |
break; |
|
190 |
||
191 |
case EInProgress: |
|
192 |
{ |
|
193 |
iCaseStep = EPassed; |
|
194 |
User::After(1000000); |
|
195 |
TTestCasePassed request; |
|
196 |
iControlEp0->SendRequest(request,this); |
|
197 |
} |
|
198 |
break; |
|
199 |
||
200 |
default: |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
201 |
OstTrace0(TRACE_NORMAL, CUT_PBASE_T_USBDI_0483_EP0TRANSFERCOMPLETEL_DUP02, "<Error> Unknown test step"); |
0 | 202 |
TestFailed(KErrUnknown); |
203 |
break; |
|
204 |
} |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
205 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0483_EP0TRANSFERCOMPLETEL_EXIT_DUP01, this ); |
0 | 206 |
} |
207 |
void CUT_PBASE_T_USBDI_0483::DeviceInsertedL(TUint aDeviceHandle) |
|
208 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
209 |
OstTraceFunctionEntryExt( CUT_PBASE_T_USBDI_0483_DEVICEINSERTEDL_ENTRY, this ); |
0 | 210 |
Cancel(); |
211 |
||
212 |
TInt err(KErrNone); |
|
213 |
||
214 |
// Validate that device is as expected |
|
215 |
||
216 |
CUsbTestDevice& testDevice = iActorFDF->DeviceL(aDeviceHandle); |
|
217 |
if(testDevice.SerialNumber().Compare(TestCaseId()) != 0) |
|
218 |
{ |
|
219 |
// Incorrect device for this test case |
|
220 |
||
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
221 |
OstTraceExt3(TRACE_NORMAL, CUT_PBASE_T_USBDI_0483_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
|
222 |
KErrNotFound,testDevice.SerialNumber(),TestCaseId()); |
0 | 223 |
|
224 |
// Start the connection timeout again |
|
225 |
||
226 |
TimeoutIn(30); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
227 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0483_DEVICEINSERTEDL_EXIT, this ); |
0 | 228 |
return; |
229 |
} |
|
230 |
||
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
231 |
OstTrace0(TRACE_NORMAL, CUT_PBASE_T_USBDI_0483_DEVICEINSERTEDL_DUP01, "iControlEp0->SendRequest(getConfiguration,this)"); |
0 | 232 |
TUint32 token0; |
233 |
err = testDevice.Device().GetTokenForInterface(0,token0); |
|
234 |
if(err != KErrNone) |
|
235 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
236 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0483_DEVICEINSERTEDL_DUP02, "<Error %d> Token for interface 0 could not be retrieved",err); |
0 | 237 |
return TestFailed(err); |
238 |
} |
|
239 |
err = iUsbInterface0.Open(token0); // Default interface setting 0 |
|
240 |
if(err != KErrNone) |
|
241 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
242 |
OstTraceExt2(TRACE_NORMAL, CUT_PBASE_T_USBDI_0483_DEVICEINSERTEDL_DUP03, "<Error %d> Unable to open interface 1 using token %d",err,token0); |
0 | 243 |
return TestFailed(err); |
244 |
} |
|
245 |
||
246 |
// get config. descriptor now |
|
247 |
TUint totalLength = testDevice.ConfigurationDescriptor().TotalLength(); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
248 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0483_DEVICEINSERTEDL_DUP04, "totalLength ==== %d",totalLength); |
0 | 249 |
iConfigDescriptorData = HBufC8::NewL(totalLength); |
250 |
TPtr8 des(iConfigDescriptorData->Des()); |
|
251 |
des.SetLength(totalLength); |
|
252 |
TDescriptorGetRequest getConfiguration(KGetConfigDescriptor,0,des); |
|
253 |
iControlEp0->SendRequest(getConfiguration,this); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
254 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0483_DEVICEINSERTEDL_EXIT_DUP01, this ); |
0 | 255 |
} |
256 |
||
257 |
||
258 |
void CUT_PBASE_T_USBDI_0483::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_0483_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_0483_DEVICEREMOVEDL_EXIT, this ); |
0 | 267 |
} |
268 |
||
269 |
||
270 |
void CUT_PBASE_T_USBDI_0483::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_0483_BUSERRORL_ENTRY, this ); |
0 | 273 |
|
274 |
// This test case handles no failiures on the bus |
|
275 |
||
276 |
TestFailed(KErrCompletion); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
277 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0483_BUSERRORL_EXIT, this ); |
0 | 278 |
} |
279 |
||
280 |
||
281 |
void CUT_PBASE_T_USBDI_0483::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_0483_HOSTRUNL_ENTRY, this ); |
0 | 284 |
// Obtain the completion code |
285 |
TInt completionCode(iStatus.Int()); |
|
286 |
||
287 |
if(completionCode == KErrNone) |
|
288 |
{ |
|
289 |
// Action timeout |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
290 |
OstTrace0(TRACE_NORMAL, CUT_PBASE_T_USBDI_0483_HOSTRUNL, "<Error> Action timeout"); |
0 | 291 |
TestFailed(KErrTimedOut); |
292 |
} |
|
293 |
else |
|
294 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
295 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0483_HOSTRUNL_DUP01, "<Error %d> Timeout timer could not complete",completionCode); |
0 | 296 |
TestFailed(completionCode); |
297 |
} |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
298 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0483_HOSTRUNL_EXIT, this ); |
0 | 299 |
} |
300 |
||
301 |
void CUT_PBASE_T_USBDI_0483::DeviceRunL() |
|
302 |
{ |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
303 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0483_DEVICERUNL_ENTRY, this ); |
0 | 304 |
|
305 |
// Disconnect the device |
|
306 |
||
307 |
iTestDevice->SoftwareDisconnect(); |
|
308 |
||
309 |
// Complete the test case request |
|
310 |
||
311 |
TestPolicy().SignalTestComplete(iStatus.Int()); |
|
259
57b9594f5772
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
312 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0483_DEVICERUNL_EXIT, this ); |
0 | 313 |
} |
314 |
||
315 |
||
316 |
} |