webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
webrtc::testing::bwe::BweTest Class Reference

#include <bwe_test.h>

Inheritance diagram for webrtc::testing::bwe::BweTest:
webrtc::testing::bwe::BweFeedbackTest webrtc::testing::bwe::BweSimulation

Public Member Functions

 BweTest ()
 
 BweTest (bool plot_capacity)
 
 ~BweTest ()
 
void RunChoke (BandwidthEstimatorType bwe_type, std::vector< int > capacities_kbps)
 
void RunVariableCapacity1SingleFlow (BandwidthEstimatorType bwe_type)
 
void RunVariableCapacity2MultipleFlows (BandwidthEstimatorType bwe_type, size_t num_flows)
 
void RunBidirectionalFlow (BandwidthEstimatorType bwe_type)
 
void RunSelfFairness (BandwidthEstimatorType bwe_type)
 
void RunRoundTripTimeFairness (BandwidthEstimatorType bwe_type)
 
void RunLongTcpFairness (BandwidthEstimatorType bwe_type)
 
void RunMultipleShortTcpFairness (BandwidthEstimatorType bwe_type, std::vector< int > tcp_file_sizes_bytes, std::vector< int64_t > tcp_starting_times_ms)
 
void RunPauseResumeFlows (BandwidthEstimatorType bwe_type)
 
void RunFairnessTest (BandwidthEstimatorType bwe_type, size_t num_media_flows, size_t num_tcp_flows, int64_t run_time_seconds, uint32_t capacity_kbps, int64_t max_delay_ms, int64_t rtt_ms, int64_t max_jitter_ms, const int64_t *offsets_ms)
 
void RunFairnessTest (BandwidthEstimatorType bwe_type, size_t num_media_flows, size_t num_tcp_flows, int64_t run_time_seconds, uint32_t capacity_kbps, int64_t max_delay_ms, int64_t rtt_ms, int64_t max_jitter_ms, const int64_t *offsets_ms, const std::string &title, const std::string &flow_name)
 
 BweTest ()
 
 BweTest (bool plot_capacity)
 
 ~BweTest ()
 
void RunChoke (BandwidthEstimatorType bwe_type, std::vector< int > capacities_kbps)
 
void RunVariableCapacity1SingleFlow (BandwidthEstimatorType bwe_type)
 
void RunVariableCapacity2MultipleFlows (BandwidthEstimatorType bwe_type, size_t num_flows)
 
void RunBidirectionalFlow (BandwidthEstimatorType bwe_type)
 
void RunSelfFairness (BandwidthEstimatorType bwe_type)
 
void RunRoundTripTimeFairness (BandwidthEstimatorType bwe_type)
 
void RunLongTcpFairness (BandwidthEstimatorType bwe_type)
 
void RunMultipleShortTcpFairness (BandwidthEstimatorType bwe_type, std::vector< int > tcp_file_sizes_bytes, std::vector< int64_t > tcp_starting_times_ms)
 
void RunPauseResumeFlows (BandwidthEstimatorType bwe_type)
 
void RunFairnessTest (BandwidthEstimatorType bwe_type, size_t num_media_flows, size_t num_tcp_flows, int64_t run_time_seconds, uint32_t capacity_kbps, int64_t max_delay_ms, int64_t rtt_ms, int64_t max_jitter_ms, const int64_t *offsets_ms)
 
void RunFairnessTest (BandwidthEstimatorType bwe_type, size_t num_media_flows, size_t num_tcp_flows, int64_t run_time_seconds, uint32_t capacity_kbps, int64_t max_delay_ms, int64_t rtt_ms, int64_t max_jitter_ms, const int64_t *offsets_ms, const std::string &title, const std::string &flow_name)
 

Static Public Member Functions

static std::vector< int > GetFileSizesBytes (int num_files)
 
static std::vector< int64_tGetStartingTimesMs (int num_files)
 
static std::vector< int > GetFileSizesBytes (int num_files)
 
static std::vector< int64_tGetStartingTimesMs (int num_files)
 

Protected Member Functions

void SetUp ()
 
void VerboseLogging (bool enable)
 
void RunFor (int64_t time_ms)
 
std::string GetTestName () const
 
void PrintResults (double max_throughput_kbps, Stats< double > throughput_kbps, int flow_id, Stats< double > flow_delay_ms, Stats< double > flow_throughput_kbps)
 
void PrintResults (double max_throughput_kbps, Stats< double > throughput_kbps, std::map< int, Stats< double >> flow_delay_ms, std::map< int, Stats< double >> flow_throughput_kbps)
 
void SetUp ()
 
void VerboseLogging (bool enable)
 
void RunFor (int64_t time_ms)
 
std::string GetTestName () const
 
void PrintResults (double max_throughput_kbps, Stats< double > throughput_kbps, int flow_id, Stats< double > flow_delay_ms, Stats< double > flow_throughput_kbps)
 
void PrintResults (double max_throughput_kbps, Stats< double > throughput_kbps, std::map< int, Stats< double >> flow_delay_ms, std::map< int, Stats< double >> flow_throughput_kbps)
 

Protected Attributes

Link downlink_
 
Link uplink_
 

Constructor & Destructor Documentation

◆ BweTest() [1/4]

webrtc::testing::bwe::BweTest::BweTest ( )

◆ BweTest() [2/4]

webrtc::testing::bwe::BweTest::BweTest ( bool  plot_capacity)
explicit

◆ ~BweTest() [1/2]

webrtc::testing::bwe::BweTest::~BweTest ( )

◆ BweTest() [3/4]

webrtc::testing::bwe::BweTest::BweTest ( )

◆ BweTest() [4/4]

webrtc::testing::bwe::BweTest::BweTest ( bool  plot_capacity)
explicit

◆ ~BweTest() [2/2]

webrtc::testing::bwe::BweTest::~BweTest ( )

Member Function Documentation

◆ GetFileSizesBytes() [1/2]

std::vector< int > webrtc::testing::bwe::BweTest::GetFileSizesBytes ( int  num_files)
static

◆ GetFileSizesBytes() [2/2]

static std::vector<int> webrtc::testing::bwe::BweTest::GetFileSizesBytes ( int  num_files)
static

◆ GetStartingTimesMs() [1/2]

static std::vector<int64_t> webrtc::testing::bwe::BweTest::GetStartingTimesMs ( int  num_files)
static

◆ GetStartingTimesMs() [2/2]

std::vector< int64_t > webrtc::testing::bwe::BweTest::GetStartingTimesMs ( int  num_files)
static

◆ GetTestName() [1/2]

std::string webrtc::testing::bwe::BweTest::GetTestName ( ) const
protected

◆ GetTestName() [2/2]

std::string webrtc::testing::bwe::BweTest::GetTestName ( ) const
protected

◆ PrintResults() [1/4]

void webrtc::testing::bwe::BweTest::PrintResults ( double  max_throughput_kbps,
Stats< double >  throughput_kbps,
int  flow_id,
Stats< double >  flow_delay_ms,
Stats< double >  flow_throughput_kbps 
)
protected

◆ PrintResults() [2/4]

void webrtc::testing::bwe::BweTest::PrintResults ( double  max_throughput_kbps,
Stats< double >  throughput_kbps,
int  flow_id,
Stats< double >  flow_delay_ms,
Stats< double >  flow_throughput_kbps 
)
protected

◆ PrintResults() [3/4]

void webrtc::testing::bwe::BweTest::PrintResults ( double  max_throughput_kbps,
Stats< double >  throughput_kbps,
std::map< int, Stats< double >>  flow_delay_ms,
std::map< int, Stats< double >>  flow_throughput_kbps 
)
protected

◆ PrintResults() [4/4]

void webrtc::testing::bwe::BweTest::PrintResults ( double  max_throughput_kbps,
Stats< double >  throughput_kbps,
std::map< int, Stats< double >>  flow_delay_ms,
std::map< int, Stats< double >>  flow_throughput_kbps 
)
protected

◆ RunBidirectionalFlow() [1/2]

void webrtc::testing::bwe::BweTest::RunBidirectionalFlow ( BandwidthEstimatorType  bwe_type)

◆ RunBidirectionalFlow() [2/2]

void webrtc::testing::bwe::BweTest::RunBidirectionalFlow ( BandwidthEstimatorType  bwe_type)

◆ RunChoke() [1/2]

void webrtc::testing::bwe::BweTest::RunChoke ( BandwidthEstimatorType  bwe_type,
std::vector< int >  capacities_kbps 
)

◆ RunChoke() [2/2]

void webrtc::testing::bwe::BweTest::RunChoke ( BandwidthEstimatorType  bwe_type,
std::vector< int >  capacities_kbps 
)

◆ RunFairnessTest() [1/4]

void webrtc::testing::bwe::BweTest::RunFairnessTest ( BandwidthEstimatorType  bwe_type,
size_t  num_media_flows,
size_t  num_tcp_flows,
int64_t  run_time_seconds,
uint32_t  capacity_kbps,
int64_t  max_delay_ms,
int64_t  rtt_ms,
int64_t  max_jitter_ms,
const int64_t offsets_ms 
)

◆ RunFairnessTest() [2/4]

void webrtc::testing::bwe::BweTest::RunFairnessTest ( BandwidthEstimatorType  bwe_type,
size_t  num_media_flows,
size_t  num_tcp_flows,
int64_t  run_time_seconds,
uint32_t  capacity_kbps,
int64_t  max_delay_ms,
int64_t  rtt_ms,
int64_t  max_jitter_ms,
const int64_t offsets_ms 
)

◆ RunFairnessTest() [3/4]

void webrtc::testing::bwe::BweTest::RunFairnessTest ( BandwidthEstimatorType  bwe_type,
size_t  num_media_flows,
size_t  num_tcp_flows,
int64_t  run_time_seconds,
uint32_t  capacity_kbps,
int64_t  max_delay_ms,
int64_t  rtt_ms,
int64_t  max_jitter_ms,
const int64_t offsets_ms,
const std::string title,
const std::string flow_name 
)

◆ RunFairnessTest() [4/4]

void webrtc::testing::bwe::BweTest::RunFairnessTest ( BandwidthEstimatorType  bwe_type,
size_t  num_media_flows,
size_t  num_tcp_flows,
int64_t  run_time_seconds,
uint32_t  capacity_kbps,
int64_t  max_delay_ms,
int64_t  rtt_ms,
int64_t  max_jitter_ms,
const int64_t offsets_ms,
const std::string title,
const std::string flow_name 
)

◆ RunFor() [1/2]

void webrtc::testing::bwe::BweTest::RunFor ( int64_t  time_ms)
protected

◆ RunFor() [2/2]

void webrtc::testing::bwe::BweTest::RunFor ( int64_t  time_ms)
protected

◆ RunLongTcpFairness() [1/2]

void webrtc::testing::bwe::BweTest::RunLongTcpFairness ( BandwidthEstimatorType  bwe_type)

◆ RunLongTcpFairness() [2/2]

void webrtc::testing::bwe::BweTest::RunLongTcpFairness ( BandwidthEstimatorType  bwe_type)

◆ RunMultipleShortTcpFairness() [1/2]

void webrtc::testing::bwe::BweTest::RunMultipleShortTcpFairness ( BandwidthEstimatorType  bwe_type,
std::vector< int >  tcp_file_sizes_bytes,
std::vector< int64_t tcp_starting_times_ms 
)

◆ RunMultipleShortTcpFairness() [2/2]

void webrtc::testing::bwe::BweTest::RunMultipleShortTcpFairness ( BandwidthEstimatorType  bwe_type,
std::vector< int >  tcp_file_sizes_bytes,
std::vector< int64_t tcp_starting_times_ms 
)

◆ RunPauseResumeFlows() [1/2]

void webrtc::testing::bwe::BweTest::RunPauseResumeFlows ( BandwidthEstimatorType  bwe_type)

◆ RunPauseResumeFlows() [2/2]

void webrtc::testing::bwe::BweTest::RunPauseResumeFlows ( BandwidthEstimatorType  bwe_type)

◆ RunRoundTripTimeFairness() [1/2]

void webrtc::testing::bwe::BweTest::RunRoundTripTimeFairness ( BandwidthEstimatorType  bwe_type)

◆ RunRoundTripTimeFairness() [2/2]

void webrtc::testing::bwe::BweTest::RunRoundTripTimeFairness ( BandwidthEstimatorType  bwe_type)

◆ RunSelfFairness() [1/2]

void webrtc::testing::bwe::BweTest::RunSelfFairness ( BandwidthEstimatorType  bwe_type)

◆ RunSelfFairness() [2/2]

void webrtc::testing::bwe::BweTest::RunSelfFairness ( BandwidthEstimatorType  bwe_type)

◆ RunVariableCapacity1SingleFlow() [1/2]

void webrtc::testing::bwe::BweTest::RunVariableCapacity1SingleFlow ( BandwidthEstimatorType  bwe_type)

◆ RunVariableCapacity1SingleFlow() [2/2]

void webrtc::testing::bwe::BweTest::RunVariableCapacity1SingleFlow ( BandwidthEstimatorType  bwe_type)

◆ RunVariableCapacity2MultipleFlows() [1/2]

void webrtc::testing::bwe::BweTest::RunVariableCapacity2MultipleFlows ( BandwidthEstimatorType  bwe_type,
size_t  num_flows 
)

◆ RunVariableCapacity2MultipleFlows() [2/2]

void webrtc::testing::bwe::BweTest::RunVariableCapacity2MultipleFlows ( BandwidthEstimatorType  bwe_type,
size_t  num_flows 
)

◆ SetUp() [1/2]

void webrtc::testing::bwe::BweTest::SetUp ( )
protected

◆ SetUp() [2/2]

void webrtc::testing::bwe::BweTest::SetUp ( )
protected

◆ VerboseLogging() [1/2]

void webrtc::testing::bwe::BweTest::VerboseLogging ( bool  enable)
protected

◆ VerboseLogging() [2/2]

void webrtc::testing::bwe::BweTest::VerboseLogging ( bool  enable)
protected

Member Data Documentation

◆ downlink_

Link webrtc::testing::bwe::BweTest::downlink_
protected

◆ uplink_

Link webrtc::testing::bwe::BweTest::uplink_
protected

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