Update contrib.
1 #ifndef __TEST_CASE_PBASE_T_USBDI_0475_H
2 #define __TEST_CASE_PBASE_T_USBDI_0475_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-0475.h
27 #include "basetestcase.h"
28 #include "testcasefactory.h"
32 #include "hosttransfers.h"
34 namespace NUnitTesting_USBDI
40 @SYMTestCaseID PBASE-T_USBDI-0475
41 @SYMTestCaseDesc Validation of ill-formed USB descriptors
44 @SYMREQ 7058 - [USBD : Descriptor access]
45 7060 - [USBD : Descriptor access: backward compatibility]
48 @SYMTestActions 1. Parse descriptors using a raw data set.
50 3. Compare generated trees to reference ones
51 @SYMTestExpectedResults No errors
52 @SYMTestStatus Implemented
56 class CUT_PBASE_T_USBDI_0475 : public CBaseTestCase
59 static CUT_PBASE_T_USBDI_0475* NewL(TBool aHostRole);
60 ~CUT_PBASE_T_USBDI_0475();
62 public: // From MUsbBusObserver
63 void DeviceInsertedL(TUint aDeviceHandle);
64 void DeviceRemovedL(TUint aDeviceHandle);
65 void BusErrorL(TInt aError);
66 void DeviceStateChangeL(RUsbDevice::TDeviceState aPreviousState,RUsbDevice::TDeviceState aNewState,
67 TInt aCompletionCode);
69 public: // From MTransferObserver
70 void TransferCompleteL(TInt aTransferId,TInt aCompletionCode);
73 CUT_PBASE_T_USBDI_0475(TBool aHostRole);
75 void ExecuteHostTestCaseL();
76 void ExecuteDeviceTestCaseL();
78 void DeviceDoCancel();
95 The functor for this test case for the factory
97 const static TFunctorTestCase<CUT_PBASE_T_USBDI_0475,TBool> iFunctor;