--- a/videoplayback/videohelix/tsrc/ut_videohelixtest/src/videohelixtestbody.cpp Fri Feb 19 22:52:52 2010 +0200
+++ b/videoplayback/videohelix/tsrc/ut_videohelixtest/src/videohelixtestbody.cpp Fri Mar 12 15:43:00 2010 +0200
@@ -15,7 +15,7 @@
*
*/
-// Version : %version: 16 %
+// Version : %version: 17 %
// [INCLUDE FILES] - do not remove
@@ -115,7 +115,10 @@
ENTRY( "SetDrmProtected", CVHPPTestClass::SetDrmProtectedL ),
ENTRY( "IssueSeekedToEndCommand", CVHPPTestClass::IssueSeekedToEndCommandL),
- ENTRY( "HandleVolume", CVHPPTestClass::HandleVolumeL )
+ ENTRY( "HandleVolume", CVHPPTestClass::HandleVolumeL ),
+ ENTRY( "ConnectHDMITvOut", CVHPPTestClass::ConnectHDMITvOutL ),
+ ENTRY( "DisconnectHDMITvOut", CVHPPTestClass::DisconnectHDMITvOutL ),
+ ENTRY( "SetHDMITvOutConnected", CVHPPTestClass::SetHDMITvOutConnectedL )
//
@@ -2165,4 +2168,65 @@
return err;
}
+TInt
+CVHPPTestClass::ConnectHDMITvOutL( )
+{
+ MPX_ENTER_EXIT(_L("CVHPPTestClass::ConnectHDMITvOutL()"));
+ iLog->Log(_L("CVHPPTestClass::ConnectHDMITvOutL()"));
+
+ // Connect HDMI TV Out
+ iAccObserver->SetTvOutHDMI( ETrue );
+
+ //
+ // Add event for callback
+ //
+ TCallbackEvent* event = new TCallbackEvent;
+
+ event->iEvent = EPbCmdTvOutEvent;
+ event->iData = ETrue;
+ event->iError = ETrue;
+
+ AddExpectedEvent( event );
+
+ iAccObserver->UpdateTvOutStatusL( ETrue );
+
+ return KErrNone;
+}
+
+TInt
+CVHPPTestClass::DisconnectHDMITvOutL()
+{
+ MPX_ENTER_EXIT(_L("CVHPPTestClass::DisconnectHDMITvOutL()"));
+ iLog->Log(_L("CVHPPTestClass::DisconnectHDMITvOutL()"));
+
+ // Connect HDMI TV Out
+ iAccObserver->SetTvOutHDMI( EFalse );
+
+ //
+ // Add event for callback
+ //
+ TCallbackEvent* event = new TCallbackEvent;
+
+ event->iEvent = EPbCmdTvOutEvent;
+ event->iData = EFalse;
+ event->iError = ETrue;
+
+ AddExpectedEvent( event );
+
+ iAccObserver->UpdateTvOutStatusL( EFalse );
+
+ return KErrNone;
+}
+
+TInt
+CVHPPTestClass::SetHDMITvOutConnectedL()
+{
+ MPX_ENTER_EXIT(_L("CVHPPTestClass::SetHDMITvOutConnectedL()"));
+ iLog->Log(_L("CVHPPTestClass::SetHDMITvOutConnectedL()"));
+
+ iAccObserver->SetTvOutHDMI( ETrue );
+
+ return KErrNone;
+}
+
// EOF