First public contribution.
1 #ifndef __TEST_CASE_PBASE_T_USBDI_0484_H
2 #define __TEST_CASE_PBASE_T_USBDI_0484_H
5 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
7 * This component and the accompanying materials are made available
8 * under the terms of the License "Eclipse Public License v1.0"
9 * which accompanies this distribution, and is available
10 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
12 * Initial Contributors:
13 * Nokia Corporation - initial contribution.
18 * @file PBASE-T_USBDI-0484.h
27 #include "BaseBulkTestCase.h"
28 #include "TestCaseFactory.h"
30 #include "modelleddevices.h"
31 #include "controltransferrequests.h"
32 #include "hosttransfers.h"
38 namespace NUnitTesting_USBDI
44 @SYMTestCaseID PBASE-T_USBDI-0484
45 @SYMTestCaseDesc Test clearing error states (stalls) in transfers
48 @SYMREQ 7057 [USBD : Clearing error states]
51 @SYMTestActions 1. Open interfaces to connected device
52 2. Queue a bulk in transfer
53 3. While transfer is queued, stall the relervant endpoint
54 4. Acknowledge the stall in the transfer
55 @SYMTestExpectedResults Bulk in transfer completes with stall
56 @SYMTestStatus Implemented
60 class CUT_PBASE_T_USBDI_0484 : public CBaseBulkTestCase,
61 public MTransferObserver,
62 public MCommandObserver
65 static CUT_PBASE_T_USBDI_0484* NewL(TBool aHostRole);
66 ~CUT_PBASE_T_USBDI_0484();
68 public: // From MUsbBusObserver
69 void DeviceInsertedL(TUint aDeviceHandle);
71 public: // From MCommandObserver
72 void Ep0TransferCompleteL(TInt aCompletionCode);
74 public: // From MTransferObserver
75 void TransferCompleteL(TInt aTransferId,TInt aCompletionCode);
78 CUT_PBASE_T_USBDI_0484(TBool aHostRole);
96 The functor for this test case
98 const static TFunctorTestCase<CUT_PBASE_T_USBDI_0484,TBool> iFunctor;