LCOV - code coverage report
Current view: top level - dom/media/gmp/widevine-adapter - WidevineDummyDecoder.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 28 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 8 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #include "WidevineDummyDecoder.h"
       2             : #include "WidevineUtils.h"
       3             : 
       4             : using namespace cdm;
       5             : 
       6             : namespace mozilla {
       7           0 : WidevineDummyDecoder::WidevineDummyDecoder()
       8             : {
       9           0 :   CDM_LOG("WidevineDummyDecoder created");
      10           0 : }
      11             : 
      12           0 : void WidevineDummyDecoder::InitDecode(const GMPVideoCodec & aCodecSettings,
      13             :                                       const uint8_t * aCodecSpecific,
      14             :                                       uint32_t aCodecSpecificLength,
      15             :                                       GMPVideoDecoderCallback * aCallback,
      16             :                                       int32_t aCoreCount)
      17             : {
      18           0 :   CDM_LOG("WidevineDummyDecoder::InitDecode");
      19             : 
      20           0 :   mCallback = aCallback;
      21           0 :   mCallback->Error(GMPErr::GMPNotImplementedErr);
      22           0 : }
      23             : 
      24           0 : void WidevineDummyDecoder::Decode(GMPVideoEncodedFrame * aInputFrame,
      25             :                                   bool aMissingFrames,
      26             :                                   const uint8_t * aCodecSpecificInfo,
      27             :                                   uint32_t aCodecSpecificInfoLength,
      28             :                                   int64_t aRenderTimeMs)
      29             : {
      30           0 :   CDM_LOG("WidevineDummyDecoder::Decode");
      31           0 :   mCallback->Error(GMPErr::GMPNotImplementedErr);
      32           0 : }
      33             : 
      34           0 : void WidevineDummyDecoder::Reset()
      35             : {
      36           0 :   CDM_LOG("WidevineDummyDecoder::Reset");
      37           0 :   mCallback->Error(GMPErr::GMPNotImplementedErr);
      38           0 : }
      39             : 
      40           0 : void WidevineDummyDecoder::Drain()
      41             : {
      42           0 :   CDM_LOG("WidevineDummyDecoder::Drain");
      43           0 :   mCallback->Error(GMPErr::GMPNotImplementedErr);
      44           0 : }
      45             : 
      46           0 : void WidevineDummyDecoder::DecodingComplete()
      47             : {
      48           0 :   CDM_LOG("WidevineDummyDecoder::DecodingComplete");
      49             : 
      50           0 :   mCallback = nullptr;
      51           0 :   delete this;
      52           0 : }
      53             : 
      54           0 : WidevineDummyDecoder::~WidevineDummyDecoder() {
      55           0 :   CDM_LOG("WidevineDummyDecoder destroyed");
      56           0 : }
      57             : }

Generated by: LCOV version 1.13