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

Unified Diff: webrtc/call/rampup_tests.cc

Issue 2794193003: Move SelectMediaType from RampUpTester to BaseTest. (Closed)
Patch Set: Created 3 years, 8 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/call/rampup_tests.h ('k') | webrtc/test/call_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/call/rampup_tests.cc
diff --git a/webrtc/call/rampup_tests.cc b/webrtc/call/rampup_tests.cc
index 6c3cce60103010e41f669f02a0f683aed43a248c..b75418d546c7653ecf9945ff9d7d01aa220c3fc9 100644
--- a/webrtc/call/rampup_tests.cc
+++ b/webrtc/call/rampup_tests.cc
@@ -89,19 +89,6 @@ void RampUpTester::OnVideoStreamsCreated(
send_stream_ = send_stream;
}
-MediaType RampUpTester::SelectMediaType() {
- if (num_video_streams_ > 0) {
- if (num_audio_streams_ > 0) {
- // Rely on call to set media type from payload type.
- return MediaType::ANY;
- } else {
- return MediaType::VIDEO;
- }
- } else {
- return MediaType::AUDIO;
- }
-}
-
test::PacketTransport* RampUpTester::CreateSendTransport(Call* sender_call) {
send_transport_ = new test::PacketTransport(sender_call, this,
test::PacketTransport::kSender,
@@ -110,13 +97,6 @@ test::PacketTransport* RampUpTester::CreateSendTransport(Call* sender_call) {
return send_transport_;
}
-test::PacketTransport* RampUpTester::CreateReceiveTransport() {
- return new test::PacketTransport(nullptr, this,
- test::PacketTransport::kReceiver,
- SelectMediaType(),
- FakeNetworkPipe::Config());
-}
-
size_t RampUpTester::GetNumVideoStreams() const {
return num_video_streams_;
}
« no previous file with comments | « webrtc/call/rampup_tests.h ('k') | webrtc/test/call_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698