usbengines/usbotgwatcher/tsrc/UsbOtgWatcherTest/src/UsbOtgWatcherTestBlocks.cpp
branchRCL_3
changeset 79 25fce757be94
parent 77 5b2a402e96ac
child 80 e02eb84a14d2
--- a/usbengines/usbotgwatcher/tsrc/UsbOtgWatcherTest/src/UsbOtgWatcherTestBlocks.cpp	Thu Aug 19 10:54:11 2010 +0300
+++ b/usbengines/usbotgwatcher/tsrc/UsbOtgWatcherTest/src/UsbOtgWatcherTestBlocks.cpp	Tue Aug 31 16:13:57 2010 +0300
@@ -26,6 +26,7 @@
 #include "mockusbman.h"
 #include "mockcusbnotifmanager.h"
 #include <usbpersonalityids.h>
+#include "cusbindicatornotifier.h"
 
 // EXTERNAL DATA STRUCTURES
 
@@ -145,6 +146,11 @@
                 {
                 TESTPARAM( eGetString, eTestOption1 )
                 }
+ 
+     TESTENTRY( "IndicatorNotifier_IndicatorActivateL", CtUsbOtgWatcher::IndicatorNotifier_IndicatorActivateL )
+                {
+                TESTPARAM( eGetString, eTestOption1 )
+                }
     }
 
 // Add test block methods implementation here
@@ -613,6 +619,29 @@
     TRACE("<<CtUsbOtgWatcher::DeviceDetached_SupportedDeviceL");
     }
 
+void CtUsbOtgWatcher::IndicatorNotifier_IndicatorActivateL( TUsbOtgWatcherTestBlockParams& aParams,
+                            TUsbOtgWatcherTestResult& aTestResult )
+    {
+    TRACE(">> IndicatorNotifier_IndicatorActivateL"); 
+     
+    SetupL();
+    
+    CUsbNotifManager* notifManager = CUsbNotifManager::NewL(*iWatcher);
+    CleanupStack::PushL(notifManager);
+    CUsbIndicatorNotifier* notifier = CUsbIndicatorNotifier::NewL(*notifManager, *iWatcher);
+    CleanupStack::PushL(notifier);        
+    
+    notifier->ToggleConnectingIndicator(ETrue);
+    
+    STIF_ASSERT_TRUE(notifier->iConnectingIndicatorOn);
+                                
+    CleanupStack::PopAndDestroy(2);         
+    
+    TearDown();
+      
+    aTestResult = ETestCasePassed;                         
+    TRACE("<< IndicatorNotifier_IndicatorActivateL");                                   
+    }
 
 // Add other member functions implementation here