Move SimulatedNetworkConfig on top level.
Make SimulatedNetwrokConfig configuration of default implementation of NetworkSimulationInterface, that will be used by WebRTC in case of network simulation. Bug: webrtc:9630 Change-Id: Ib7c3d0c69fc09627f3d8694e61ac8409101e8392 Reviewed-on: https://webrtc-review.googlesource.com/94154 Commit-Queue: Artem Titov <titovartem@webrtc.org> Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24311}
This commit is contained in:
@ -42,12 +42,11 @@ struct PacketDeliveryInfo {
|
|||||||
uint64_t packet_id;
|
uint64_t packet_id;
|
||||||
};
|
};
|
||||||
|
|
||||||
class NetworkSimulationInterface {
|
// DefaultNetworkSimulationConfig is a default network simulation configuration
|
||||||
public:
|
// for default network simulation that will be used by WebRTC if no custom
|
||||||
// TODO(phoglund): this one shouldn't really be here; make fake network pipes
|
// NetworkSimulationInterface is provided.
|
||||||
// injectable instead in the video quality test fixture.
|
struct DefaultNetworkSimulationConfig {
|
||||||
struct SimulatedNetworkConfig {
|
DefaultNetworkSimulationConfig() {}
|
||||||
SimulatedNetworkConfig() {}
|
|
||||||
// Queue length in number of packets.
|
// Queue length in number of packets.
|
||||||
size_t queue_length_packets = 0;
|
size_t queue_length_packets = 0;
|
||||||
// Delay in addition to capacity induced delay.
|
// Delay in addition to capacity induced delay.
|
||||||
@ -64,6 +63,12 @@ class NetworkSimulationInterface {
|
|||||||
int avg_burst_loss_length = -1;
|
int avg_burst_loss_length = -1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class NetworkSimulationInterface {
|
||||||
|
public:
|
||||||
|
// DO NOT USE. Use DefaultNetworkSimulationConfig directly. This reference
|
||||||
|
// should be removed when all users will be switched on direct usage.
|
||||||
|
using SimulatedNetworkConfig = DefaultNetworkSimulationConfig;
|
||||||
|
|
||||||
// DO NOT USE. Method added temporary for further refactoring and will be
|
// DO NOT USE. Method added temporary for further refactoring and will be
|
||||||
// removed soon.
|
// removed soon.
|
||||||
// Sets a new configuration. This won't affect packets already in the pipe.
|
// Sets a new configuration. This won't affect packets already in the pipe.
|
||||||
|
@ -79,7 +79,7 @@ class VideoQualityTestFixtureInterface {
|
|||||||
std::string graph_data_output_filename;
|
std::string graph_data_output_filename;
|
||||||
std::string graph_title;
|
std::string graph_title;
|
||||||
} analyzer;
|
} analyzer;
|
||||||
NetworkSimulationInterface::SimulatedNetworkConfig pipe;
|
DefaultNetworkSimulationConfig pipe;
|
||||||
struct SS { // Spatial scalability.
|
struct SS { // Spatial scalability.
|
||||||
std::vector<VideoStream> streams; // If empty, one stream is assumed.
|
std::vector<VideoStream> streams; // If empty, one stream is assumed.
|
||||||
size_t selected_stream;
|
size_t selected_stream;
|
||||||
|
Reference in New Issue
Block a user