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

Unified Diff: webrtc/test/direct_transport.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/call_test.cc ('k') | webrtc/test/direct_transport.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/direct_transport.h
diff --git a/webrtc/test/direct_transport.h b/webrtc/test/direct_transport.h
index eb552c57c8e29b52bcb1f562d6f36bd98d4266dd..20a6857182b71d545b0d742df3aea61aa31138df 100644
--- a/webrtc/test/direct_transport.h
+++ b/webrtc/test/direct_transport.h
@@ -18,11 +18,11 @@
#include "webrtc/base/criticalsection.h"
#include "webrtc/base/event.h"
#include "webrtc/base/platform_thread.h"
+#include "webrtc/call/call.h"
#include "webrtc/test/fake_network_pipe.h"
namespace webrtc {
-class Call;
class Clock;
class PacketReceiver;
@@ -30,8 +30,17 @@ namespace test {
class DirectTransport : public Transport {
public:
- explicit DirectTransport(Call* send_call);
- DirectTransport(const FakeNetworkPipe::Config& config, Call* send_call);
+ DirectTransport(Call* send_call, MediaType media_type);
+ DirectTransport(const FakeNetworkPipe::Config& config, Call* send_call,
+ MediaType media_type);
+ // These deprecated variants always use MediaType::VIDEO.
+ RTC_DEPRECATED explicit DirectTransport(Call* send_call)
+ : DirectTransport(send_call, MediaType::VIDEO) {}
+
+ RTC_DEPRECATED DirectTransport(const FakeNetworkPipe::Config& config,
+ Call* send_call)
+ : DirectTransport(config, send_call, MediaType::VIDEO) {}
+
~DirectTransport();
void SetConfig(const FakeNetworkPipe::Config& config);
« no previous file with comments | « webrtc/test/call_test.cc ('k') | webrtc/test/direct_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698