webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Functions
bitrate_controller_unittest.cc File Reference
#include <algorithm>
#include <vector>
#include "webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h"
#include "webrtc/modules/bitrate_controller/include/bitrate_controller.h"
#include "webrtc/modules/pacing/mock/mock_paced_sender.h"
#include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h"
#include "webrtc/test/field_trial.h"
#include "webrtc/test/gtest.h"

Classes

class  TestBitrateObserver
 
class  BitrateControllerTest
 

Functions

uint8_t WeightedLoss (int num_packets1, uint8_t fraction_loss1, int num_packets2, uint8_t fraction_loss2)
 
webrtc::RTCPReportBlock CreateReportBlock (uint32_t remote_ssrc, uint32_t source_ssrc, uint8_t fraction_lost, uint32_t extended_high_sequence_number)
 
 TEST_F (BitrateControllerTest, DefaultMinMaxBitrate)
 
 TEST_F (BitrateControllerTest, OneBitrateObserverOneRtcpObserver)
 
 TEST_F (BitrateControllerTest, OneBitrateObserverTwoRtcpObservers)
 
 TEST_F (BitrateControllerTest, OneBitrateObserverMultipleReportBlocks)
 
 TEST_F (BitrateControllerTest, SetReservedBitrate)
 
 TEST_F (BitrateControllerTest, TimeoutsWithoutFeedback)
 
 TEST_F (BitrateControllerTest, StopIncreaseWithoutPacketReports)
 

Function Documentation

◆ CreateReportBlock()

webrtc::RTCPReportBlock CreateReportBlock ( uint32_t  remote_ssrc,
uint32_t  source_ssrc,
uint8_t  fraction_lost,
uint32_t  extended_high_sequence_number 
)

◆ TEST_F() [1/7]

TEST_F ( BitrateControllerTest  ,
DefaultMinMaxBitrate   
)

◆ TEST_F() [2/7]

TEST_F ( BitrateControllerTest  ,
OneBitrateObserverOneRtcpObserver   
)

◆ TEST_F() [3/7]

TEST_F ( BitrateControllerTest  ,
OneBitrateObserverTwoRtcpObservers   
)

◆ TEST_F() [4/7]

TEST_F ( BitrateControllerTest  ,
OneBitrateObserverMultipleReportBlocks   
)

◆ TEST_F() [5/7]

TEST_F ( BitrateControllerTest  ,
SetReservedBitrate   
)

◆ TEST_F() [6/7]

TEST_F ( BitrateControllerTest  ,
TimeoutsWithoutFeedback   
)

◆ TEST_F() [7/7]

TEST_F ( BitrateControllerTest  ,
StopIncreaseWithoutPacketReports   
)

◆ WeightedLoss()

uint8_t WeightedLoss ( int  num_packets1,
uint8_t  fraction_loss1,
int  num_packets2,
uint8_t  fraction_loss2 
)