First public contribution.
1 #ifndef __TEST_CASE_PBASE_T_USBDI_0499_H
2 #define __TEST_CASE_PBASE_T_USBDI_0499_H
5 * Copyright (c) 2008-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-0499.h
27 #include "BaseBulkTestCase.h"
30 namespace NUnitTesting_USBDI
35 @SYMTestCaseID PBASE-T_USBDI-0499
36 @SYMTestCaseDesc Test resilience to halting an endpoint whilst performing a bulk OUT transfer
39 @SYMREQ 7055 [USBD : Bulk transfers]
42 @SYMTestActions 1. Open interfaces to connected device
43 2. Request bulk OUT transfer
44 3. Client halts endpoint
45 4. Host clears halt on endpoint (via control transfer request)
46 5. Request second bulk OUT transfer
47 6. Validate data from second bulk OUT transfer.
48 @SYMTestExpectedResults Round trip transfer data is not corrupt
50 @SYMTestExpectedResults Round trip transfer data is not corrupt
56 class CUT_PBASE_T_USBDI_0499 : public CBaseBulkTestCase,
57 public MTransferObserver,
58 public MCommandObserver
62 static CUT_PBASE_T_USBDI_0499* NewL(TBool aHostRole);
63 ~CUT_PBASE_T_USBDI_0499();
65 public: // From MUsbBusObserver
66 void DeviceInsertedL(TUint aDeviceHandle);
68 public: // From MCommandObserver
69 void Ep0TransferCompleteL(TInt aCompletionCode);
71 public: // From MTransferObserver
72 void TransferCompleteL(TInt aTransferId,TInt aCompletionCode);
75 CUT_PBASE_T_USBDI_0499(TBool aHostRole);
96 The functor for this test case
98 const static TFunctorTestCase<CUT_PBASE_T_USBDI_0499,TBool> iFunctor;