videoplayback/videohelix/tsrc/ut_videohelixtest/src/videohelixtestbody.cpp
branchRCL_3
changeset 8 ce5ada96ab30
parent 2 dec420019252
child 9 5294c000a26d
equal deleted inserted replaced
6:7d91903f795f 8:ce5ada96ab30
    13 *
    13 *
    14 * Description:  Test Harness for VideoHelixPlaybackPlugin
    14 * Description:  Test Harness for VideoHelixPlaybackPlugin
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 16 %
    18 // Version : %version: 17 %
    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>
   113         ENTRY( "ConnectTvOut", CVHPPTestClass::ConnectTvOutL ),
   113         ENTRY( "ConnectTvOut", CVHPPTestClass::ConnectTvOutL ),
   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 )
   119 
   122 
   120 
   123 
   121         //
   124         //
   122         //  ADD NEW ENTRIES HERE
   125         //  ADD NEW ENTRIES HERE
   123         //
   126         //
  2163     }
  2166     }
  2164     
  2167     
  2165     return err; 
  2168     return err; 
  2166 } 
  2169 } 
  2167 
  2170 
       
  2171 TInt
       
  2172 CVHPPTestClass::ConnectHDMITvOutL( )
       
  2173 {
       
  2174     MPX_ENTER_EXIT(_L("CVHPPTestClass::ConnectHDMITvOutL()"));
       
  2175     iLog->Log(_L("CVHPPTestClass::ConnectHDMITvOutL()"));
       
  2176 
       
  2177     // Connect HDMI TV Out
       
  2178     iAccObserver->SetTvOutHDMI( ETrue );
       
  2179 
       
  2180     //
       
  2181     //  Add event for callback
       
  2182     //
       
  2183     TCallbackEvent* event = new TCallbackEvent;
       
  2184 
       
  2185     event->iEvent = EPbCmdTvOutEvent;
       
  2186     event->iData  = ETrue;
       
  2187     event->iError = ETrue;
       
  2188 
       
  2189     AddExpectedEvent( event );
       
  2190 
       
  2191     iAccObserver->UpdateTvOutStatusL( ETrue );
       
  2192 
       
  2193     return KErrNone;
       
  2194 }
       
  2195 
       
  2196 TInt
       
  2197 CVHPPTestClass::DisconnectHDMITvOutL()
       
  2198 {
       
  2199     MPX_ENTER_EXIT(_L("CVHPPTestClass::DisconnectHDMITvOutL()"));
       
  2200     iLog->Log(_L("CVHPPTestClass::DisconnectHDMITvOutL()"));
       
  2201 
       
  2202     // Connect HDMI TV Out
       
  2203     iAccObserver->SetTvOutHDMI( EFalse );
       
  2204 
       
  2205     //
       
  2206     //  Add event for callback
       
  2207     //
       
  2208     TCallbackEvent* event = new TCallbackEvent;
       
  2209 
       
  2210     event->iEvent = EPbCmdTvOutEvent;
       
  2211     event->iData  = EFalse;
       
  2212     event->iError = ETrue;
       
  2213 
       
  2214     AddExpectedEvent( event );
       
  2215 
       
  2216     iAccObserver->UpdateTvOutStatusL( EFalse );
       
  2217 
       
  2218     return KErrNone;
       
  2219 }
       
  2220 
       
  2221 TInt
       
  2222 CVHPPTestClass::SetHDMITvOutConnectedL()
       
  2223 {
       
  2224     MPX_ENTER_EXIT(_L("CVHPPTestClass::SetHDMITvOutConnectedL()"));
       
  2225     iLog->Log(_L("CVHPPTestClass::SetHDMITvOutConnectedL()"));
       
  2226 
       
  2227     iAccObserver->SetTvOutHDMI( ETrue );
       
  2228 
       
  2229     return KErrNone;
       
  2230 }
       
  2231 
  2168 //  EOF
  2232 //  EOF