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

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

Issue 2794243002: Making FakeNetworkPipe demux audio and video packets. (Closed)
Patch Set: fixing android 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
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 return call_config; 83 return call_config;
84 } 84 }
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(
94 test::PacketTransport::kSender, 94 sender_call, this, test::PacketTransport::kSender,
95 SelectMediaType(), 95 test::CallTest::payload_type_map_, forward_transport_config_);
96 forward_transport_config_);
97 return send_transport_; 96 return send_transport_;
98 } 97 }
99 98
100 size_t RampUpTester::GetNumVideoStreams() const { 99 size_t RampUpTester::GetNumVideoStreams() const {
101 return num_video_streams_; 100 return num_video_streams_;
102 } 101 }
103 102
104 size_t RampUpTester::GetNumAudioStreams() const { 103 size_t RampUpTester::GetNumAudioStreams() const {
105 return num_audio_streams_; 104 return num_audio_streams_;
106 } 105 }
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 RunBaseTest(&test); 640 RunBaseTest(&test);
642 } 641 }
643 642
644 TEST_F(RampUpTest, AudioTransportSequenceNumber) { 643 TEST_F(RampUpTest, AudioTransportSequenceNumber) {
645 RampUpTester test(0, 1, 0, 300000, 10000, 644 RampUpTester test(0, 1, 0, 300000, 10000,
646 RtpExtension::kTransportSequenceNumberUri, false, false, 645 RtpExtension::kTransportSequenceNumberUri, false, false,
647 false); 646 false);
648 RunBaseTest(&test); 647 RunBaseTest(&test);
649 } 648 }
650 } // namespace webrtc 649 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698