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

Side by Side Diff: webrtc/test/call_test.cc

Issue 2709723003: Initial implementation of RtpTransportControllerReceive and related interfaces.
Patch Set: Merge remote-tracking branch 'origin/master' into design-RtpTransportReceiveController Created 3 years, 3 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.cc ('k') | webrtc/test/mock_voe_channel_proxy.h » ('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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 test->ModifyVideoConfigs(&video_send_config_, &video_receive_configs_, 119 test->ModifyVideoConfigs(&video_send_config_, &video_receive_configs_,
120 &video_encoder_config_); 120 &video_encoder_config_);
121 } 121 }
122 if (num_audio_streams_ > 0) { 122 if (num_audio_streams_ > 0) {
123 test->ModifyAudioConfigs(&audio_send_config_, &audio_receive_configs_); 123 test->ModifyAudioConfigs(&audio_send_config_, &audio_receive_configs_);
124 } 124 }
125 if (num_flexfec_streams_ > 0) { 125 if (num_flexfec_streams_ > 0) {
126 test->ModifyFlexfecConfigs(&flexfec_receive_configs_); 126 test->ModifyFlexfecConfigs(&flexfec_receive_configs_);
127 } 127 }
128 128
129 if (num_flexfec_streams_ > 0) {
130 CreateFlexfecStreams();
131 test->OnFlexfecStreamsCreated(flexfec_receive_streams_);
132 }
133 if (num_video_streams_ > 0) { 129 if (num_video_streams_ > 0) {
134 CreateVideoStreams(); 130 CreateVideoStreams();
135 test->OnVideoStreamsCreated(video_send_stream_, video_receive_streams_); 131 test->OnVideoStreamsCreated(video_send_stream_, video_receive_streams_);
136 } 132 }
137 if (num_audio_streams_ > 0) { 133 if (num_audio_streams_ > 0) {
138 CreateAudioStreams(); 134 CreateAudioStreams();
139 test->OnAudioStreamsCreated(audio_send_stream_, audio_receive_streams_); 135 test->OnAudioStreamsCreated(audio_send_stream_, audio_receive_streams_);
140 } 136 }
137 if (num_flexfec_streams_ > 0) {
138 CreateFlexfecStreams();
139 test->OnFlexfecStreamsCreated(flexfec_receive_streams_);
140 }
141 141
142 if (num_video_streams_ > 0) { 142 if (num_video_streams_ > 0) {
143 int width = kDefaultWidth; 143 int width = kDefaultWidth;
144 int height = kDefaultHeight; 144 int height = kDefaultHeight;
145 int frame_rate = kDefaultFramerate; 145 int frame_rate = kDefaultFramerate;
146 test->ModifyVideoCaptureStartResolution(&width, &height, &frame_rate); 146 test->ModifyVideoCaptureStartResolution(&width, &height, &frame_rate);
147 CreateFrameGeneratorCapturer(frame_rate, width, height); 147 CreateFrameGeneratorCapturer(frame_rate, width, height);
148 test->OnFrameGeneratorCapturerCreated(frame_generator_capturer_.get()); 148 test->OnFrameGeneratorCapturerCreated(frame_generator_capturer_.get());
149 } 149 }
150 150
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 604
605 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { 605 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) {
606 } 606 }
607 607
608 bool EndToEndTest::ShouldCreateReceivers() const { 608 bool EndToEndTest::ShouldCreateReceivers() const {
609 return true; 609 return true;
610 } 610 }
611 611
612 } // namespace test 612 } // namespace test
613 } // namespace webrtc 613 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/call/call.cc ('k') | webrtc/test/mock_voe_channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698