Remove unused method PacketLossModeToStr.

Add method FrameType for frame to TestConfig.

Bug: none
Change-Id: Icfeb12fcb961559c9b36a3aedb081a840b9d8556
Reviewed-on: https://webrtc-review.googlesource.com/16120
Reviewed-by: Rasmus Brandt <brandtr@webrtc.org>
Commit-Queue: Åsa Persson <asapersson@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20458}
This commit is contained in:
Åsa Persson
2017-10-26 15:33:18 +02:00
committed by Commit Bot
parent 71c62b438e
commit e87cfe2315
6 changed files with 45 additions and 35 deletions

View File

@ -24,13 +24,10 @@ namespace test {
enum PacketLossMode {
// Drops packets with a configured probability independently for each packet
kUniform,
// Drops packets similar to uniform but when a packet is being dropped,
// the number of lost packets in a row is equal to the configured burst
// length.
// Drops packets similar to uniform but when a packet is being dropped, the
// number of lost packets in a row is equal to the configured burst length.
kBurst
};
// Returns a string representation of the enum value.
const char* PacketLossModeToStr(PacketLossMode e);
// Contains configurations related to networking and simulation of
// scenarios caused by network interference.
@ -100,13 +97,13 @@ class PacketManipulatorImpl : public PacketManipulator {
virtual double RandomUniform();
private:
PacketReader* packet_reader_;
PacketReader* const packet_reader_;
const NetworkingConfig& config_;
const bool verbose_;
// Used to simulate a burst over several frames.
int active_burst_packets_;
rtc::CriticalSection critsect_;
unsigned int random_seed_;
bool verbose_;
};
} // namespace test