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

Side by Side Diff: webrtc/call/rampup_tests.cc

Issue 2774463003: Don't hardcode MediaType::ANY in FakeNetworkPipe. (Closed)
Patch Set: Update FakeCall::DeliverPacket, for consistency with Call::DeliverRtp. 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 unified diff | Download patch
« no previous file with comments | « webrtc/call/call_perf_tests.cc ('k') | webrtc/media/engine/fakewebrtccall.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 void RampUpTester::OnVideoStreamsCreated( 86 void RampUpTester::OnVideoStreamsCreated(
87 VideoSendStream* send_stream, 87 VideoSendStream* send_stream,
88 const std::vector<VideoReceiveStream*>& receive_streams) { 88 const std::vector<VideoReceiveStream*>& receive_streams) {
89 send_stream_ = send_stream; 89 send_stream_ = send_stream;
90 } 90 }
91 91
92 test::PacketTransport* RampUpTester::CreateSendTransport(Call* sender_call) { 92 test::PacketTransport* RampUpTester::CreateSendTransport(Call* sender_call) {
93 send_transport_ = new test::PacketTransport(sender_call, this, 93 send_transport_ = new test::PacketTransport(sender_call, this,
94 test::PacketTransport::kSender, 94 test::PacketTransport::kSender,
95 MediaType::AUDIO,
95 forward_transport_config_); 96 forward_transport_config_);
96 return send_transport_; 97 return send_transport_;
97 } 98 }
98 99
99 size_t RampUpTester::GetNumVideoStreams() const { 100 size_t RampUpTester::GetNumVideoStreams() const {
100 return num_video_streams_; 101 return num_video_streams_;
101 } 102 }
102 103
103 size_t RampUpTester::GetNumAudioStreams() const { 104 size_t RampUpTester::GetNumAudioStreams() const {
104 return num_audio_streams_; 105 return num_audio_streams_;
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 RunBaseTest(&test); 644 RunBaseTest(&test);
644 } 645 }
645 646
646 TEST_F(RampUpTest, AudioTransportSequenceNumber) { 647 TEST_F(RampUpTest, AudioTransportSequenceNumber) {
647 RampUpTester test(0, 1, 0, 300000, 10000, 648 RampUpTester test(0, 1, 0, 300000, 10000,
648 RtpExtension::kTransportSequenceNumberUri, false, false, 649 RtpExtension::kTransportSequenceNumberUri, false, false,
649 false); 650 false);
650 RunBaseTest(&test); 651 RunBaseTest(&test);
651 } 652 }
652 } // namespace webrtc 653 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/call/call_perf_tests.cc ('k') | webrtc/media/engine/fakewebrtccall.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698