1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of the License "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
17 // |
17 // |
18 |
18 |
19 #include "modelleddevices.h" |
19 #include "modelleddevices.h" |
20 #include "testinterfacebase.h" |
20 #include "testinterfacebase.h" |
21 #include "testinterfacesettingbase.h" |
21 #include "testinterfacesettingbase.h" |
|
22 #include "OstTraceDefinitions.h" |
|
23 #ifdef OST_TRACE_COMPILER_IN_USE |
|
24 #include "testdeviceDTraces.h" |
|
25 #endif |
|
26 |
|
27 |
22 |
28 |
23 |
29 |
24 namespace NUnitTesting_USBDI |
30 namespace NUnitTesting_USBDI |
25 { |
31 { |
26 |
32 |
27 RUsbDeviceD::RUsbDeviceD() |
33 RUsbDeviceD::RUsbDeviceD() |
28 { |
34 { |
29 LOG_FUNC |
35 OstTraceFunctionEntry1( RUSBDEVICED_RUSBDEVICED_ENTRY, this ); |
|
36 OstTraceFunctionExit1( RUSBDEVICED_RUSBDEVICED_EXIT, this ); |
30 } |
37 } |
31 |
38 |
32 RUsbDeviceD::RUsbDeviceD(CBaseTestCase* aTestCase):RUsbDeviceVendor(aTestCase) |
39 RUsbDeviceD::RUsbDeviceD(CBaseTestCase* aTestCase):RUsbDeviceVendor(aTestCase) |
33 { |
40 { |
34 LOG_FUNC |
41 OstTraceFunctionEntryExt( RUSBDEVICED_RUSBDEVICED_ENTRY_DUP01, this ); |
|
42 OstTraceFunctionExit1( RUSBDEVICED_RUSBDEVICED_EXIT_DUP01, this ); |
35 } |
43 } |
36 |
44 |
37 RUsbDeviceD::~RUsbDeviceD() |
45 RUsbDeviceD::~RUsbDeviceD() |
38 { |
46 { |
39 LOG_FUNC |
47 OstTraceFunctionEntry1( RUSBDEVICED_RUSBDEVICED_ENTRY_DUP02, this ); |
|
48 OstTraceFunctionExit1( RUSBDEVICED_RUSBDEVICED_EXIT_DUP02, this ); |
40 } |
49 } |
41 |
50 |
42 |
51 |
43 void RUsbDeviceD::OpenL(const TDesC16& aSerialNumber) |
52 void RUsbDeviceD::OpenL(const TDesC16& aSerialNumber) |
44 { |
53 { |
45 LOG_FUNC |
54 OstTraceFunctionEntryExt( RUSBDEVICED_OPENL_ENTRY, this ); |
46 |
55 |
47 RUsbDeviceVendor::OpenL(aSerialNumber); |
56 RUsbDeviceVendor::OpenL(aSerialNumber); |
48 |
57 |
49 // Create another interface (interface1) |
58 // Create another interface (interface1) |
50 |
59 |
118 interface2->AddInterfaceSettingL(interface2s0); |
127 interface2->AddInterfaceSettingL(interface2s0); |
119 CleanupStack::Pop(interface2s0); |
128 CleanupStack::Pop(interface2s0); |
120 |
129 |
121 AddInterface(interface2); |
130 AddInterface(interface2); |
122 CleanupStack::Pop(interface2); |
131 CleanupStack::Pop(interface2); |
|
132 OstTraceFunctionExit1( RUSBDEVICED_OPENL_EXIT, this ); |
123 } |
133 } |
124 |
134 |
125 |
135 |
126 void RUsbDeviceD::OnStateChangeL(TUsbcDeviceState aNewState) |
136 void RUsbDeviceD::OnStateChangeL(TUsbcDeviceState aNewState) |
127 { |
137 { |
128 LOG_FUNC |
138 OstTraceFunctionEntryExt( RUSBDEVICED_ONSTATECHANGEL_ENTRY, this ); |
|
139 OstTraceFunctionExit1( RUSBDEVICED_ONSTATECHANGEL_EXIT, this ); |
129 } |
140 } |
130 |
141 |
131 |
142 |
132 } |
143 } |