First public contribution.
1 #ifndef __TEST_CASE_PBASE_T_USBDI_0491_H
2 #define __TEST_CASE_PBASE_T_USBDI_0491_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-0491.h
27 #include "BaseBulkTestCase.h"
30 namespace NUnitTesting_USBDI
36 @SYMTestCaseID PBASE-T_USBDI-0491
37 @SYMTestCaseDesc Test for bulk transfers requiring more than one packet
40 @SYMREQ 7055 [USBD : Bulk transfers]
43 @SYMTestActions 1. Open interfaces to connected device
44 2. Request a bulk out transfer
45 3. Request a bulk in transfer (expecting data just transferred to peripheral to be sent back)
46 4. Validate round trip data
47 @SYMTestExpectedResults Round trip transfer data is not corrupt
52 class CUT_PBASE_T_USBDI_0491 : public CBaseBulkTestCase,
53 public MTransferObserver,
54 public MCommandObserver
57 static CUT_PBASE_T_USBDI_0491* NewL(TBool aHostRole);
58 ~CUT_PBASE_T_USBDI_0491();
60 public: // From MUsbBusObserver
61 void DeviceInsertedL(TUint aDeviceHandle);
63 public: // From MCommandObserver
64 void Ep0TransferCompleteL(TInt aCompletionCode);
66 public: // From MTransferObserver
67 void TransferCompleteL(TInt aTransferId,TInt aCompletionCode);
70 CUT_PBASE_T_USBDI_0491(TBool aHostRole);
88 The functor for this test case
90 const static TFunctorTestCase<CUT_PBASE_T_USBDI_0491,TBool> iFunctor;