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" |
29 |
30 |
30 // EXTERNAL DATA STRUCTURES |
31 // EXTERNAL DATA STRUCTURES |
31 |
32 |
32 // EXTERNAL FUNCTION PROTOTYPES |
33 // EXTERNAL FUNCTION PROTOTYPES |
33 |
34 |
140 { |
141 { |
141 TESTPARAM( eGetString, eTestOption1 ) |
142 TESTPARAM( eGetString, eTestOption1 ) |
142 } |
143 } |
143 |
144 |
144 TESTENTRY( "DeviceDetached_SupportedDevice", CtUsbOtgWatcher::DeviceDetached_SupportedDeviceL ) |
145 TESTENTRY( "DeviceDetached_SupportedDevice", CtUsbOtgWatcher::DeviceDetached_SupportedDeviceL ) |
|
146 { |
|
147 TESTPARAM( eGetString, eTestOption1 ) |
|
148 } |
|
149 |
|
150 TESTENTRY( "IndicatorNotifier_IndicatorActivateL", CtUsbOtgWatcher::IndicatorNotifier_IndicatorActivateL ) |
145 { |
151 { |
146 TESTPARAM( eGetString, eTestOption1 ) |
152 TESTPARAM( eGetString, eTestOption1 ) |
147 } |
153 } |
148 } |
154 } |
149 |
155 |
611 aTestResult = ETestCasePassed; |
617 aTestResult = ETestCasePassed; |
612 |
618 |
613 TRACE("<<CtUsbOtgWatcher::DeviceDetached_SupportedDeviceL"); |
619 TRACE("<<CtUsbOtgWatcher::DeviceDetached_SupportedDeviceL"); |
614 } |
620 } |
615 |
621 |
|
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 } |
616 |
645 |
617 // Add other member functions implementation here |
646 // Add other member functions implementation here |
618 |
647 |
619 void CtUsbOtgWatcher::SetupL() |
648 void CtUsbOtgWatcher::SetupL() |
620 { |
649 { |