webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
webrtc::NetEqDecodingTest Class Reference
Inheritance diagram for webrtc::NetEqDecodingTest:
testing::Test webrtc::NetEqBgnTest webrtc::NetEqDecodingTestFaxMode webrtc::NetEqDecodingTestTwoInstances webrtc::NetEqDecodingTestWithMutedState webrtc::NetEqBgnTestFade webrtc::NetEqBgnTestOff webrtc::NetEqBgnTestOn

Protected Member Functions

 NetEqDecodingTest ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
void SelectDecoders (NetEqDecoder *used_codec)
 
void OpenInputFile (const std::string &rtp_file)
 
void Process ()
 
void DecodeAndCompare (const std::string &rtp_file, const std::string &output_checksum, const std::string &network_stats_checksum, const std::string &rtcp_stats_checksum, bool gen_ref)
 
void WrapTest (uint16_t start_seq_no, uint32_t start_timestamp, const std::set< uint16_t > &drop_seq_numbers, bool expect_seq_no_wrap, bool expect_timestamp_wrap)
 
void LongCngWithClockDrift (double drift_factor, double network_freeze_ms, bool pull_audio_during_freeze, int delay_tolerance_ms, int max_time_to_speech_ms)
 
void DuplicateCng ()
 
rtc::Optional< uint32_tPlayoutTimestamp ()
 
- Protected Member Functions inherited from testing::Test
 Test ()
 

Static Protected Member Functions

static void PopulateRtpInfo (int frame_index, int timestamp, WebRtcRTPHeader *rtp_info)
 
static void PopulateCng (int frame_index, int timestamp, WebRtcRTPHeader *rtp_info, uint8_t *payload, size_t *payload_len)
 

Protected Attributes

NetEqneteq_
 
NetEq::Config config_
 
std::unique_ptr< test::RtpFileSourcertp_source_
 
std::unique_ptr< test::Packetpacket_
 
unsigned int sim_clock_
 
AudioFrame out_frame_
 
int output_sample_rate_
 
int algorithmic_delay_ms_
 

Static Protected Attributes

static const int kTimeStepMs = 10
 
static const size_t kBlockSize8kHz = kTimeStepMs * 8
 
static const size_t kBlockSize16kHz = kTimeStepMs * 16
 
static const size_t kBlockSize32kHz = kTimeStepMs * 32
 
static const size_t kBlockSize48kHz = kTimeStepMs * 48
 
static const int kInitSampleRateHz = 8000
 

Constructor & Destructor Documentation

◆ NetEqDecodingTest()

webrtc::NetEqDecodingTest::NetEqDecodingTest ( )
protected

Member Function Documentation

◆ DecodeAndCompare()

void webrtc::NetEqDecodingTest::DecodeAndCompare ( const std::string rtp_file,
const std::string output_checksum,
const std::string network_stats_checksum,
const std::string rtcp_stats_checksum,
bool  gen_ref 
)
protected

◆ DuplicateCng()

void webrtc::NetEqDecodingTest::DuplicateCng ( )
protected

◆ LongCngWithClockDrift()

void webrtc::NetEqDecodingTest::LongCngWithClockDrift ( double  drift_factor,
double  network_freeze_ms,
bool  pull_audio_during_freeze,
int  delay_tolerance_ms,
int  max_time_to_speech_ms 
)
protected

◆ OpenInputFile()

void webrtc::NetEqDecodingTest::OpenInputFile ( const std::string rtp_file)
protected

◆ PlayoutTimestamp()

rtc::Optional< uint32_t > webrtc::NetEqDecodingTest::PlayoutTimestamp ( )
protected

◆ PopulateCng()

void webrtc::NetEqDecodingTest::PopulateCng ( int  frame_index,
int  timestamp,
WebRtcRTPHeader rtp_info,
uint8_t payload,
size_t payload_len 
)
staticprotected

◆ PopulateRtpInfo()

void webrtc::NetEqDecodingTest::PopulateRtpInfo ( int  frame_index,
int  timestamp,
WebRtcRTPHeader rtp_info 
)
staticprotected

◆ Process()

void webrtc::NetEqDecodingTest::Process ( )
protected

◆ SelectDecoders()

void webrtc::NetEqDecodingTest::SelectDecoders ( NetEqDecoder used_codec)
protected

◆ SetUp()

void webrtc::NetEqDecodingTest::SetUp ( )
protectedvirtual

Reimplemented from testing::Test.

Reimplemented in webrtc::NetEqDecodingTestTwoInstances.

◆ TearDown()

void webrtc::NetEqDecodingTest::TearDown ( )
protectedvirtual

Reimplemented from testing::Test.

◆ WrapTest()

void webrtc::NetEqDecodingTest::WrapTest ( uint16_t  start_seq_no,
uint32_t  start_timestamp,
const std::set< uint16_t > &  drop_seq_numbers,
bool  expect_seq_no_wrap,
bool  expect_timestamp_wrap 
)
protected

Member Data Documentation

◆ algorithmic_delay_ms_

int webrtc::NetEqDecodingTest::algorithmic_delay_ms_
protected

◆ config_

NetEq::Config webrtc::NetEqDecodingTest::config_
protected

◆ kBlockSize16kHz

const size_t webrtc::NetEqDecodingTest::kBlockSize16kHz = kTimeStepMs * 16
staticprotected

◆ kBlockSize32kHz

const size_t webrtc::NetEqDecodingTest::kBlockSize32kHz = kTimeStepMs * 32
staticprotected

◆ kBlockSize48kHz

const size_t webrtc::NetEqDecodingTest::kBlockSize48kHz = kTimeStepMs * 48
staticprotected

◆ kBlockSize8kHz

const size_t webrtc::NetEqDecodingTest::kBlockSize8kHz = kTimeStepMs * 8
staticprotected

◆ kInitSampleRateHz

const int webrtc::NetEqDecodingTest::kInitSampleRateHz = 8000
staticprotected

◆ kTimeStepMs

const int webrtc::NetEqDecodingTest::kTimeStepMs = 10
staticprotected

◆ neteq_

NetEq* webrtc::NetEqDecodingTest::neteq_
protected

◆ out_frame_

AudioFrame webrtc::NetEqDecodingTest::out_frame_
protected

◆ output_sample_rate_

int webrtc::NetEqDecodingTest::output_sample_rate_
protected

◆ packet_

std::unique_ptr<test::Packet> webrtc::NetEqDecodingTest::packet_
protected

◆ rtp_source_

std::unique_ptr<test::RtpFileSource> webrtc::NetEqDecodingTest::rtp_source_
protected

◆ sim_clock_

unsigned int webrtc::NetEqDecodingTest::sim_clock_
protected

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