kerneltest/e32test/usbho/t_usbdi/src/testdeviceD.cpp
branchRCL_3
changeset 257 3e88ff8f41d5
parent 256 c1f20ce4abcf
equal deleted inserted replaced
256:c1f20ce4abcf 257:3e88ff8f41d5
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-2009 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 
       
    28 
    22 
    29 
    23 
    30 namespace NUnitTesting_USBDI
    24 namespace NUnitTesting_USBDI
    31 	{
    25 	{
    32 	
    26 	
    33 RUsbDeviceD::RUsbDeviceD()
    27 RUsbDeviceD::RUsbDeviceD()
    34 	{
    28 	{
    35 	OstTraceFunctionEntry1( RUSBDEVICED_RUSBDEVICED_ENTRY, this );
    29 	LOG_FUNC
    36 	OstTraceFunctionExit1( RUSBDEVICED_RUSBDEVICED_EXIT, this );
       
    37 	}
    30 	}
    38 	
    31 	
    39 RUsbDeviceD::RUsbDeviceD(CBaseTestCase* aTestCase):RUsbDeviceVendor(aTestCase)
    32 RUsbDeviceD::RUsbDeviceD(CBaseTestCase* aTestCase):RUsbDeviceVendor(aTestCase)
    40 	{
    33 	{
    41 	OstTraceFunctionEntryExt( RUSBDEVICED_RUSBDEVICED_ENTRY_DUP01, this );
    34 	LOG_FUNC
    42 	OstTraceFunctionExit1( RUSBDEVICED_RUSBDEVICED_EXIT_DUP01, this );
       
    43 	}
    35 	}
    44 	
    36 	
    45 RUsbDeviceD::~RUsbDeviceD()
    37 RUsbDeviceD::~RUsbDeviceD()
    46 	{
    38 	{
    47 	OstTraceFunctionEntry1( RUSBDEVICED_RUSBDEVICED_ENTRY_DUP02, this );
    39 	LOG_FUNC	
    48 	OstTraceFunctionExit1( RUSBDEVICED_RUSBDEVICED_EXIT_DUP02, this );
       
    49 	}
    40 	}
    50 	
    41 	
    51 
    42 
    52 void RUsbDeviceD::OpenL(const TDesC16& aSerialNumber)
    43 void RUsbDeviceD::OpenL(const TDesC16& aSerialNumber)
    53 	{
    44 	{
    54 	OstTraceFunctionEntryExt( RUSBDEVICED_OPENL_ENTRY, this );
    45 	LOG_FUNC
    55 	
    46 	
    56 	RUsbDeviceVendor::OpenL(aSerialNumber);
    47 	RUsbDeviceVendor::OpenL(aSerialNumber);
    57 	
    48 	
    58 	// Create another interface (interface1)
    49 	// Create another interface (interface1)
    59 	
    50 	
   127 	interface2->AddInterfaceSettingL(interface2s0);	
   118 	interface2->AddInterfaceSettingL(interface2s0);	
   128 	CleanupStack::Pop(interface2s0);
   119 	CleanupStack::Pop(interface2s0);
   129 	
   120 	
   130 	AddInterface(interface2);
   121 	AddInterface(interface2);
   131 	CleanupStack::Pop(interface2);
   122 	CleanupStack::Pop(interface2);
   132 	OstTraceFunctionExit1( RUSBDEVICED_OPENL_EXIT, this );
       
   133 	}
   123 	}
   134 
   124 
   135 	
   125 	
   136 void RUsbDeviceD::OnStateChangeL(TUsbcDeviceState aNewState)
   126 void RUsbDeviceD::OnStateChangeL(TUsbcDeviceState aNewState)
   137 	{
   127 	{
   138 	OstTraceFunctionEntryExt( RUSBDEVICED_ONSTATECHANGEL_ENTRY, this );
   128 	LOG_FUNC
   139 	OstTraceFunctionExit1( RUSBDEVICED_ONSTATECHANGEL_EXIT, this );
       
   140 	}	
   129 	}	
   141 	
   130 	
   142 	
   131 	
   143 	}
   132 	}