Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1375)

Unified Diff: webrtc/test/fake_network_pipe.h

Issue 2774463003: Don't hardcode MediaType::ANY in FakeNetworkPipe. (Closed)
Patch Set: Update FakeCall::DeliverPacket, for consistency with Call::DeliverRtp. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/test/direct_transport.cc ('k') | webrtc/test/fake_network_pipe.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/fake_network_pipe.h
diff --git a/webrtc/test/fake_network_pipe.h b/webrtc/test/fake_network_pipe.h
index 23521248f7d40e0d03211c9d2df531f8427bbe2c..491d703b28aa86e965c84313c88b08953eded5e5 100644
--- a/webrtc/test/fake_network_pipe.h
+++ b/webrtc/test/fake_network_pipe.h
@@ -26,6 +26,7 @@ namespace webrtc {
class Clock;
class CriticalSectionWrapper;
class PacketReceiver;
+enum class MediaType;
class NetworkPacket {
public:
@@ -83,9 +84,10 @@ class FakeNetworkPipe {
int avg_burst_loss_length = -1;
};
- FakeNetworkPipe(Clock* clock, const FakeNetworkPipe::Config& config);
+ FakeNetworkPipe(Clock* clock, const FakeNetworkPipe::Config& config,
+ MediaType media_type);
FakeNetworkPipe(Clock* clock,
- const FakeNetworkPipe::Config& config,
+ const FakeNetworkPipe::Config& config, MediaType media_type,
uint64_t seed);
~FakeNetworkPipe();
@@ -111,6 +113,7 @@ class FakeNetworkPipe {
private:
Clock* const clock_;
+ const MediaType media_type_;
rtc::CriticalSection lock_;
PacketReceiver* packet_receiver_;
std::queue<NetworkPacket*> capacity_link_;
« no previous file with comments | « webrtc/test/direct_transport.cc ('k') | webrtc/test/fake_network_pipe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698