Update contrib.
1 #ifndef __TEST_CASE_PBASE_T_USBDI_0483_H
2 #define __TEST_CASE_PBASE_T_USBDI_0483_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-0483.h
27 #include "BaseTestCase.h"
28 #include "TestCaseFactory.h"
30 #include "modelleddevices.h"
31 #include "controltransferrequests.h"
36 namespace NUnitTesting_USBDI
42 @SYMTestCaseID PBASE-T_USBDI-0483
43 @SYMTestCaseDesc Large configuration
46 @SYMREQ Negative testing
49 @SYMTestActions 1. Enumerate
50 2. Retrieve configuration descriptor again
52 @SYMTestExpectedResults Device connection accepted
53 @SYMTestStatus Implemented
57 class CUT_PBASE_T_USBDI_0483 : public CBaseTestCase, public MUsbBusObserver, public MCommandObserver
60 static CUT_PBASE_T_USBDI_0483* NewL(TBool aHostRole);
61 ~CUT_PBASE_T_USBDI_0483();
63 public: // From MUsbBusObserver
64 void DeviceInsertedL(TUint aDeviceHandle);
65 void DeviceRemovedL(TUint aDeviceHandle);
66 void BusErrorL(TInt aError);
67 void DeviceStateChangeL(RUsbDevice::TDeviceState aPreviousState,RUsbDevice::TDeviceState aNewState,
68 TInt aCompletionCode);
70 public: // From MCommandObserver
71 void Ep0TransferCompleteL(TInt aCompletionCode);
74 CUT_PBASE_T_USBDI_0483(TBool aHostRole);
76 void ExecuteHostTestCaseL();
77 void ExecuteDeviceTestCaseL();
79 void DeviceDoCancel();
92 RUsbInterface iUsbInterface0;
93 CEp0Transfer* iControlEp0;
94 HBufC8* iConfigDescriptorData;
96 // The test device with class-specific descriptors for this test case
97 RUsbDeviceB* iTestDevice;
101 The functor to create this test case from the factory
103 const static TFunctorTestCase<CUT_PBASE_T_USBDI_0483,TBool> iFunctor;