webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
webrtc::MockDecoderDatabase Class Reference

#include <mock_decoder_database.h>

Inheritance diagram for webrtc::MockDecoderDatabase:
webrtc::DecoderDatabase webrtc::DecoderDatabase

Public Member Functions

 MockDecoderDatabase (rtc::scoped_refptr< AudioDecoderFactory > factory=nullptr)
 
virtual ~MockDecoderDatabase ()
 
 MOCK_METHOD0 (Die, void())
 
 MOCK_CONST_METHOD0 (Empty, bool())
 
 MOCK_CONST_METHOD0 (Size, int())
 
 MOCK_METHOD0 (Reset, void())
 
 MOCK_METHOD3 (RegisterPayload, int(uint8_t rtp_payload_type, NetEqDecoder codec_type, const std::string &name))
 
 MOCK_METHOD2 (RegisterPayload, int(int rtp_payload_type, const SdpAudioFormat &audio_format))
 
 MOCK_METHOD4 (InsertExternal, int(uint8_t rtp_payload_type, NetEqDecoder codec_type, const std::string &codec_name, AudioDecoder *decoder))
 
 MOCK_METHOD1 (Remove, int(uint8_t rtp_payload_type))
 
 MOCK_METHOD0 (RemoveAll, void())
 
 MOCK_CONST_METHOD1 (GetDecoderInfo, const DecoderInfo *(uint8_t rtp_payload_type))
 
 MOCK_METHOD2 (SetActiveDecoder, int(uint8_t rtp_payload_type, bool *new_decoder))
 
 MOCK_CONST_METHOD0 (GetActiveDecoder, AudioDecoder *())
 
 MOCK_METHOD1 (SetActiveCngDecoder, int(uint8_t rtp_payload_type))
 
 MOCK_CONST_METHOD0 (GetActiveCngDecoder, ComfortNoiseDecoder *())
 
 MockDecoderDatabase (rtc::scoped_refptr< AudioDecoderFactory > factory=nullptr)
 
virtual ~MockDecoderDatabase ()
 
 MOCK_METHOD0 (Die, void())
 
 MOCK_CONST_METHOD0 (Empty, bool())
 
 MOCK_CONST_METHOD0 (Size, int())
 
 MOCK_METHOD0 (Reset, void())
 
 MOCK_METHOD3 (RegisterPayload, int(uint8_t rtp_payload_type, NetEqDecoder codec_type, const std::string &name))
 
 MOCK_METHOD2 (RegisterPayload, int(int rtp_payload_type, const SdpAudioFormat &audio_format))
 
 MOCK_METHOD4 (InsertExternal, int(uint8_t rtp_payload_type, NetEqDecoder codec_type, const std::string &codec_name, AudioDecoder *decoder))
 
 MOCK_METHOD1 (Remove, int(uint8_t rtp_payload_type))
 
 MOCK_METHOD0 (RemoveAll, void())
 
 MOCK_CONST_METHOD1 (GetDecoderInfo, const DecoderInfo *(uint8_t rtp_payload_type))
 
 MOCK_METHOD2 (SetActiveDecoder, int(uint8_t rtp_payload_type, bool *new_decoder))
 
 MOCK_CONST_METHOD0 (GetActiveDecoder, AudioDecoder *())
 
 MOCK_METHOD1 (SetActiveCngDecoder, int(uint8_t rtp_payload_type))
 
 MOCK_CONST_METHOD0 (GetActiveCngDecoder, ComfortNoiseDecoder *())
 
- Public Member Functions inherited from webrtc::DecoderDatabase
 DecoderDatabase (const rtc::scoped_refptr< AudioDecoderFactory > &decoder_factory)
 
virtual ~DecoderDatabase ()
 
virtual bool Empty () const
 
virtual int Size () const
 
virtual void Reset ()
 
virtual int RegisterPayload (uint8_t rtp_payload_type, NetEqDecoder codec_type, const std::string &name)
 
virtual int RegisterPayload (int rtp_payload_type, const SdpAudioFormat &audio_format)
 
virtual int InsertExternal (uint8_t rtp_payload_type, NetEqDecoder codec_type, const std::string &codec_name, AudioDecoder *decoder)
 
virtual int Remove (uint8_t rtp_payload_type)
 
virtual void RemoveAll ()
 
virtual const DecoderInfoGetDecoderInfo (uint8_t rtp_payload_type) const
 
virtual int SetActiveDecoder (uint8_t rtp_payload_type, bool *new_decoder)
 
virtual AudioDecoderGetActiveDecoder () const
 
virtual int SetActiveCngDecoder (uint8_t rtp_payload_type)
 
virtual ComfortNoiseDecoderGetActiveCngDecoder () const
 
AudioDecoderGetDecoder (uint8_t rtp_payload_type) const
 
bool IsType (uint8_t rtp_payload_type, const char *name) const
 
bool IsType (uint8_t rtp_payload_type, const std::string &name) const
 
bool IsComfortNoise (uint8_t rtp_payload_type) const
 
bool IsDtmf (uint8_t rtp_payload_type) const
 
bool IsRed (uint8_t rtp_payload_type) const
 
int CheckPayloadTypes (const PacketList &packet_list) const
 
 DecoderDatabase (const rtc::scoped_refptr< AudioDecoderFactory > &decoder_factory)
 
virtual ~DecoderDatabase ()
 
virtual bool Empty () const
 
virtual int Size () const
 
virtual void Reset ()
 
virtual int RegisterPayload (uint8_t rtp_payload_type, NetEqDecoder codec_type, const std::string &name)
 
virtual int RegisterPayload (int rtp_payload_type, const SdpAudioFormat &audio_format)
 
virtual int InsertExternal (uint8_t rtp_payload_type, NetEqDecoder codec_type, const std::string &codec_name, AudioDecoder *decoder)
 
virtual int Remove (uint8_t rtp_payload_type)
 
virtual void RemoveAll ()
 
virtual const DecoderInfoGetDecoderInfo (uint8_t rtp_payload_type) const
 
virtual int SetActiveDecoder (uint8_t rtp_payload_type, bool *new_decoder)
 
virtual AudioDecoderGetActiveDecoder () const
 
virtual int SetActiveCngDecoder (uint8_t rtp_payload_type)
 
virtual ComfortNoiseDecoderGetActiveCngDecoder () const
 
AudioDecoderGetDecoder (uint8_t rtp_payload_type) const
 
bool IsType (uint8_t rtp_payload_type, const char *name) const
 
bool IsType (uint8_t rtp_payload_type, const std::string &name) const
 
bool IsComfortNoise (uint8_t rtp_payload_type) const
 
bool IsDtmf (uint8_t rtp_payload_type) const
 
bool IsRed (uint8_t rtp_payload_type) const
 
int CheckPayloadTypes (const PacketList &packet_list) const
 

Additional Inherited Members

- Public Types inherited from webrtc::DecoderDatabase
enum  DatabaseReturnCodes {
  kOK = 0, kInvalidRtpPayloadType = -1, kCodecNotSupported = -2, kInvalidSampleRate = -3,
  kDecoderExists = -4, kDecoderNotFound = -5, kInvalidPointer = -6, kOK = 0,
  kInvalidRtpPayloadType = -1, kCodecNotSupported = -2, kInvalidSampleRate = -3, kDecoderExists = -4,
  kDecoderNotFound = -5, kInvalidPointer = -6
}
 
enum  DatabaseReturnCodes {
  kOK = 0, kInvalidRtpPayloadType = -1, kCodecNotSupported = -2, kInvalidSampleRate = -3,
  kDecoderExists = -4, kDecoderNotFound = -5, kInvalidPointer = -6, kOK = 0,
  kInvalidRtpPayloadType = -1, kCodecNotSupported = -2, kInvalidSampleRate = -3, kDecoderExists = -4,
  kDecoderNotFound = -5, kInvalidPointer = -6
}
 
- Static Public Attributes inherited from webrtc::DecoderDatabase
static const uint8_t kRtpPayloadTypeError = 0xFF
 

Constructor & Destructor Documentation

◆ MockDecoderDatabase() [1/2]

webrtc::MockDecoderDatabase::MockDecoderDatabase ( rtc::scoped_refptr< AudioDecoderFactory factory = nullptr)
inlineexplicit

◆ ~MockDecoderDatabase() [1/2]

virtual webrtc::MockDecoderDatabase::~MockDecoderDatabase ( )
inlinevirtual

◆ MockDecoderDatabase() [2/2]

webrtc::MockDecoderDatabase::MockDecoderDatabase ( rtc::scoped_refptr< AudioDecoderFactory factory = nullptr)
inlineexplicit

◆ ~MockDecoderDatabase() [2/2]

virtual webrtc::MockDecoderDatabase::~MockDecoderDatabase ( )
inlinevirtual

Member Function Documentation

◆ MOCK_CONST_METHOD0() [1/8]

webrtc::MockDecoderDatabase::MOCK_CONST_METHOD0 ( Empty  ,
bool()   
)

◆ MOCK_CONST_METHOD0() [2/8]

webrtc::MockDecoderDatabase::MOCK_CONST_METHOD0 ( Empty  ,
bool()   
)

◆ MOCK_CONST_METHOD0() [3/8]

webrtc::MockDecoderDatabase::MOCK_CONST_METHOD0 ( Size  ,
int()   
)

◆ MOCK_CONST_METHOD0() [4/8]

webrtc::MockDecoderDatabase::MOCK_CONST_METHOD0 ( Size  ,
int()   
)

◆ MOCK_CONST_METHOD0() [5/8]

webrtc::MockDecoderDatabase::MOCK_CONST_METHOD0 ( GetActiveDecoder  ,
AudioDecoder () 
)

◆ MOCK_CONST_METHOD0() [6/8]

webrtc::MockDecoderDatabase::MOCK_CONST_METHOD0 ( GetActiveDecoder  ,
AudioDecoder () 
)

◆ MOCK_CONST_METHOD0() [7/8]

webrtc::MockDecoderDatabase::MOCK_CONST_METHOD0 ( GetActiveCngDecoder  ,
ComfortNoiseDecoder () 
)

◆ MOCK_CONST_METHOD0() [8/8]

webrtc::MockDecoderDatabase::MOCK_CONST_METHOD0 ( GetActiveCngDecoder  ,
ComfortNoiseDecoder () 
)

◆ MOCK_CONST_METHOD1() [1/2]

webrtc::MockDecoderDatabase::MOCK_CONST_METHOD1 ( GetDecoderInfo  ,
const DecoderInfo uint8_t rtp_payload_type 
)

◆ MOCK_CONST_METHOD1() [2/2]

webrtc::MockDecoderDatabase::MOCK_CONST_METHOD1 ( GetDecoderInfo  ,
const DecoderInfo uint8_t rtp_payload_type 
)

◆ MOCK_METHOD0() [1/6]

webrtc::MockDecoderDatabase::MOCK_METHOD0 ( Die  ,
void()   
)

◆ MOCK_METHOD0() [2/6]

webrtc::MockDecoderDatabase::MOCK_METHOD0 ( Die  ,
void()   
)

◆ MOCK_METHOD0() [3/6]

webrtc::MockDecoderDatabase::MOCK_METHOD0 ( Reset  ,
void()   
)

◆ MOCK_METHOD0() [4/6]

webrtc::MockDecoderDatabase::MOCK_METHOD0 ( Reset  ,
void()   
)

◆ MOCK_METHOD0() [5/6]

webrtc::MockDecoderDatabase::MOCK_METHOD0 ( RemoveAll  ,
void()   
)

◆ MOCK_METHOD0() [6/6]

webrtc::MockDecoderDatabase::MOCK_METHOD0 ( RemoveAll  ,
void()   
)

◆ MOCK_METHOD1() [1/4]

webrtc::MockDecoderDatabase::MOCK_METHOD1 ( Remove  ,
int(uint8_t rtp_payload_type)   
)

◆ MOCK_METHOD1() [2/4]

webrtc::MockDecoderDatabase::MOCK_METHOD1 ( Remove  ,
int(uint8_t rtp_payload_type)   
)

◆ MOCK_METHOD1() [3/4]

webrtc::MockDecoderDatabase::MOCK_METHOD1 ( SetActiveCngDecoder  ,
int(uint8_t rtp_payload_type)   
)

◆ MOCK_METHOD1() [4/4]

webrtc::MockDecoderDatabase::MOCK_METHOD1 ( SetActiveCngDecoder  ,
int(uint8_t rtp_payload_type)   
)

◆ MOCK_METHOD2() [1/4]

webrtc::MockDecoderDatabase::MOCK_METHOD2 ( RegisterPayload  ,
int(int rtp_payload_type, const SdpAudioFormat &audio_format)   
)

◆ MOCK_METHOD2() [2/4]

webrtc::MockDecoderDatabase::MOCK_METHOD2 ( RegisterPayload  ,
int(int rtp_payload_type, const SdpAudioFormat &audio_format)   
)

◆ MOCK_METHOD2() [3/4]

webrtc::MockDecoderDatabase::MOCK_METHOD2 ( SetActiveDecoder  ,
int(uint8_t rtp_payload_type, bool *new_decoder)   
)

◆ MOCK_METHOD2() [4/4]

webrtc::MockDecoderDatabase::MOCK_METHOD2 ( SetActiveDecoder  ,
int(uint8_t rtp_payload_type, bool *new_decoder)   
)

◆ MOCK_METHOD3() [1/2]

webrtc::MockDecoderDatabase::MOCK_METHOD3 ( RegisterPayload  ,
int(uint8_t rtp_payload_type, NetEqDecoder codec_type, const std::string &name  
)

◆ MOCK_METHOD3() [2/2]

webrtc::MockDecoderDatabase::MOCK_METHOD3 ( RegisterPayload  ,
int(uint8_t rtp_payload_type, NetEqDecoder codec_type, const std::string &name  
)

◆ MOCK_METHOD4() [1/2]

webrtc::MockDecoderDatabase::MOCK_METHOD4 ( InsertExternal  ,
int(uint8_t rtp_payload_type, NetEqDecoder codec_type, const std::string &codec_name, AudioDecoder *decoder)   
)

◆ MOCK_METHOD4() [2/2]

webrtc::MockDecoderDatabase::MOCK_METHOD4 ( InsertExternal  ,
int(uint8_t rtp_payload_type, NetEqDecoder codec_type, const std::string &codec_name, AudioDecoder *decoder)   
)

The documentation for this class was generated from the following file: