equal
deleted
inserted
replaced
24 #include "panic.h" |
24 #include "panic.h" |
25 //#include "UsbWatcherInternalPSKeys.h" |
25 //#include "UsbWatcherInternalPSKeys.h" |
26 #include "mockusbman.h" |
26 #include "mockusbman.h" |
27 #include "mockcusbnotifmanager.h" |
27 #include "mockcusbnotifmanager.h" |
28 #include <usbpersonalityids.h> |
28 #include <usbpersonalityids.h> |
29 #include "cusbindicatornotifier.h" |
|
30 |
29 |
31 // EXTERNAL DATA STRUCTURES |
30 // EXTERNAL DATA STRUCTURES |
32 |
31 |
33 // EXTERNAL FUNCTION PROTOTYPES |
32 // EXTERNAL FUNCTION PROTOTYPES |
34 |
33 |
141 { |
140 { |
142 TESTPARAM( eGetString, eTestOption1 ) |
141 TESTPARAM( eGetString, eTestOption1 ) |
143 } |
142 } |
144 |
143 |
145 TESTENTRY( "DeviceDetached_SupportedDevice", CtUsbOtgWatcher::DeviceDetached_SupportedDeviceL ) |
144 TESTENTRY( "DeviceDetached_SupportedDevice", CtUsbOtgWatcher::DeviceDetached_SupportedDeviceL ) |
146 { |
|
147 TESTPARAM( eGetString, eTestOption1 ) |
|
148 } |
|
149 |
|
150 TESTENTRY( "IndicatorNotifier_IndicatorActivateL", CtUsbOtgWatcher::IndicatorNotifier_IndicatorActivateL ) |
|
151 { |
145 { |
152 TESTPARAM( eGetString, eTestOption1 ) |
146 TESTPARAM( eGetString, eTestOption1 ) |
153 } |
147 } |
154 } |
148 } |
155 |
149 |
617 aTestResult = ETestCasePassed; |
611 aTestResult = ETestCasePassed; |
618 |
612 |
619 TRACE("<<CtUsbOtgWatcher::DeviceDetached_SupportedDeviceL"); |
613 TRACE("<<CtUsbOtgWatcher::DeviceDetached_SupportedDeviceL"); |
620 } |
614 } |
621 |
615 |
622 void CtUsbOtgWatcher::IndicatorNotifier_IndicatorActivateL( TUsbOtgWatcherTestBlockParams& aParams, |
|
623 TUsbOtgWatcherTestResult& aTestResult ) |
|
624 { |
|
625 TRACE(">> IndicatorNotifier_IndicatorActivateL"); |
|
626 |
|
627 SetupL(); |
|
628 |
|
629 CUsbNotifManager* notifManager = CUsbNotifManager::NewL(*iWatcher); |
|
630 CleanupStack::PushL(notifManager); |
|
631 CUsbIndicatorNotifier* notifier = CUsbIndicatorNotifier::NewL(*notifManager, *iWatcher); |
|
632 CleanupStack::PushL(notifier); |
|
633 |
|
634 notifier->ToggleConnectingIndicator(ETrue); |
|
635 |
|
636 STIF_ASSERT_TRUE(notifier->iConnectingIndicatorOn); |
|
637 |
|
638 CleanupStack::PopAndDestroy(2); |
|
639 |
|
640 TearDown(); |
|
641 |
|
642 aTestResult = ETestCasePassed; |
|
643 TRACE("<< IndicatorNotifier_IndicatorActivateL"); |
|
644 } |
|
645 |
616 |
646 // Add other member functions implementation here |
617 // Add other member functions implementation here |
647 |
618 |
648 void CtUsbOtgWatcher::SetupL() |
619 void CtUsbOtgWatcher::SetupL() |
649 { |
620 { |