videoplayback/videohelix/tsrc/ut_videohelixtest/src/videohelixtestbody.cpp
branchRCL_3
changeset 12 7f2b2a65da29
parent 9 5294c000a26d
child 14 55fa1ec415c6
equal deleted inserted replaced
11:8970fbd719ec 12:7f2b2a65da29
    13 *
    13 *
    14 * Description:  Test Harness for VideoHelixPlaybackPlugin
    14 * Description:  Test Harness for VideoHelixPlaybackPlugin
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 18 %
    18 // Version : %version: 19 %
    19 
    19 
    20 
    20 
    21 // [INCLUDE FILES] - do not remove
    21 // [INCLUDE FILES] - do not remove
    22 #include <e32svr.h>
    22 #include <e32svr.h>
    23 #include <stifparser.h>
    23 #include <stifparser.h>
   114         ENTRY( "DisconnectTvOut", CVHPPTestClass::DisconnectTvOutL ),
   114         ENTRY( "DisconnectTvOut", CVHPPTestClass::DisconnectTvOutL ),
   115 
   115 
   116         ENTRY( "SetDrmProtected", CVHPPTestClass::SetDrmProtectedL ),
   116         ENTRY( "SetDrmProtected", CVHPPTestClass::SetDrmProtectedL ),
   117         ENTRY( "IssueSeekedToEndCommand", CVHPPTestClass::IssueSeekedToEndCommandL),
   117         ENTRY( "IssueSeekedToEndCommand", CVHPPTestClass::IssueSeekedToEndCommandL),
   118         ENTRY( "HandleVolume", CVHPPTestClass::HandleVolumeL ),
   118         ENTRY( "HandleVolume", CVHPPTestClass::HandleVolumeL ),
   119         ENTRY( "ConnectHDMITvOut", CVHPPTestClass::ConnectHDMITvOutL ),
       
   120         ENTRY( "DisconnectHDMITvOut", CVHPPTestClass::DisconnectHDMITvOutL ),
       
   121         ENTRY( "SetHDMITvOutConnected", CVHPPTestClass::SetHDMITvOutConnectedL ),
       
   122 
   119 
   123         ENTRY ("InitializeWithPositionL", CVHPPTestClass::InitializeWithPositionL),
   120         ENTRY ("InitializeWithPositionL", CVHPPTestClass::InitializeWithPositionL),
   124         ENTRY ("InitializeLinkWithPositionL", CVHPPTestClass::InitializeLinkWithPositionL),
   121         ENTRY ("InitializeLinkWithPositionL", CVHPPTestClass::InitializeLinkWithPositionL),
   125         ENTRY ("InitializeHandleWithPositionL", CVHPPTestClass::InitializeHandleWithPositionL)
   122         ENTRY ("InitializeHandleWithPositionL", CVHPPTestClass::InitializeHandleWithPositionL)
   126 
   123 
  2169     }
  2166     }
  2170     
  2167     
  2171     return err; 
  2168     return err; 
  2172 } 
  2169 } 
  2173 
  2170 
  2174 TInt
       
  2175 CVHPPTestClass::ConnectHDMITvOutL( )
       
  2176 {
       
  2177     MPX_ENTER_EXIT(_L("CVHPPTestClass::ConnectHDMITvOutL()"));
       
  2178     iLog->Log(_L("CVHPPTestClass::ConnectHDMITvOutL()"));
       
  2179 
       
  2180     // Connect HDMI TV Out
       
  2181     iAccObserver->SetTvOutHDMI( ETrue );
       
  2182 
       
  2183     //
       
  2184     //  Add event for callback
       
  2185     //
       
  2186     TCallbackEvent* event = new TCallbackEvent;
       
  2187 
       
  2188     event->iEvent = EPbCmdTvOutEvent;
       
  2189     event->iData  = ETrue;
       
  2190     event->iError = ETrue;
       
  2191 
       
  2192     AddExpectedEvent( event );
       
  2193 
       
  2194     iAccObserver->UpdateTvOutStatusL( ETrue );
       
  2195 
       
  2196     return KErrNone;
       
  2197 }
       
  2198 
       
  2199 TInt
       
  2200 CVHPPTestClass::DisconnectHDMITvOutL()
       
  2201 {
       
  2202     MPX_ENTER_EXIT(_L("CVHPPTestClass::DisconnectHDMITvOutL()"));
       
  2203     iLog->Log(_L("CVHPPTestClass::DisconnectHDMITvOutL()"));
       
  2204 
       
  2205     // Connect HDMI TV Out
       
  2206     iAccObserver->SetTvOutHDMI( EFalse );
       
  2207 
       
  2208     //
       
  2209     //  Add event for callback
       
  2210     //
       
  2211     TCallbackEvent* event = new TCallbackEvent;
       
  2212 
       
  2213     event->iEvent = EPbCmdTvOutEvent;
       
  2214     event->iData  = EFalse;
       
  2215     event->iError = ETrue;
       
  2216 
       
  2217     AddExpectedEvent( event );
       
  2218 
       
  2219     iAccObserver->UpdateTvOutStatusL( EFalse );
       
  2220 
       
  2221     return KErrNone;
       
  2222 }
       
  2223 
       
  2224 TInt
       
  2225 CVHPPTestClass::SetHDMITvOutConnectedL()
       
  2226 {
       
  2227     MPX_ENTER_EXIT(_L("CVHPPTestClass::SetHDMITvOutConnectedL()"));
       
  2228     iLog->Log(_L("CVHPPTestClass::SetHDMITvOutConnectedL()"));
       
  2229 
       
  2230     iAccObserver->SetTvOutHDMI( ETrue );
       
  2231 
       
  2232     return KErrNone;
       
  2233 }
       
  2234 
  2171 
  2235 TInt
  2172 TInt
  2236 CVHPPTestClass::InitializeWithPositionL( CStifItemParser& aItem )
  2173 CVHPPTestClass::InitializeWithPositionL( CStifItemParser& aItem )
  2237 {
  2174 {
  2238     MPX_ENTER_EXIT(_L("CVHPPTestClass::InitializeL()"));
  2175     MPX_ENTER_EXIT(_L("CVHPPTestClass::InitializeL()"));