OLD | NEW |
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 test->ModifyVideoConfigs(&video_send_config_, &video_receive_configs_, | 97 test->ModifyVideoConfigs(&video_send_config_, &video_receive_configs_, |
98 &video_encoder_config_); | 98 &video_encoder_config_); |
99 } | 99 } |
100 if (num_audio_streams_ > 0) { | 100 if (num_audio_streams_ > 0) { |
101 test->ModifyAudioConfigs(&audio_send_config_, &audio_receive_configs_); | 101 test->ModifyAudioConfigs(&audio_send_config_, &audio_receive_configs_); |
102 } | 102 } |
103 if (num_flexfec_streams_ > 0) { | 103 if (num_flexfec_streams_ > 0) { |
104 test->ModifyFlexfecConfigs(&flexfec_receive_configs_); | 104 test->ModifyFlexfecConfigs(&flexfec_receive_configs_); |
105 } | 105 } |
106 | 106 |
107 if (num_flexfec_streams_ > 0) { | |
108 CreateFlexfecStreams(); | |
109 test->OnFlexfecStreamsCreated(flexfec_receive_streams_); | |
110 } | |
111 if (num_video_streams_ > 0) { | 107 if (num_video_streams_ > 0) { |
112 CreateVideoStreams(); | 108 CreateVideoStreams(); |
113 test->OnVideoStreamsCreated(video_send_stream_, video_receive_streams_); | 109 test->OnVideoStreamsCreated(video_send_stream_, video_receive_streams_); |
114 } | 110 } |
115 if (num_audio_streams_ > 0) { | 111 if (num_audio_streams_ > 0) { |
116 CreateAudioStreams(); | 112 CreateAudioStreams(); |
117 test->OnAudioStreamsCreated(audio_send_stream_, audio_receive_streams_); | 113 test->OnAudioStreamsCreated(audio_send_stream_, audio_receive_streams_); |
118 } | 114 } |
| 115 if (num_flexfec_streams_ > 0) { |
| 116 CreateFlexfecStreams(); |
| 117 test->OnFlexfecStreamsCreated(flexfec_receive_streams_); |
| 118 } |
119 | 119 |
120 if (num_video_streams_ > 0) { | 120 if (num_video_streams_ > 0) { |
121 int width = kDefaultWidth; | 121 int width = kDefaultWidth; |
122 int height = kDefaultHeight; | 122 int height = kDefaultHeight; |
123 int frame_rate = kDefaultFramerate; | 123 int frame_rate = kDefaultFramerate; |
124 test->ModifyVideoCaptureStartResolution(&width, &height, &frame_rate); | 124 test->ModifyVideoCaptureStartResolution(&width, &height, &frame_rate); |
125 CreateFrameGeneratorCapturer(frame_rate, width, height); | 125 CreateFrameGeneratorCapturer(frame_rate, width, height); |
126 test->OnFrameGeneratorCapturerCreated(frame_generator_capturer_.get()); | 126 test->OnFrameGeneratorCapturerCreated(frame_generator_capturer_.get()); |
127 } | 127 } |
128 | 128 |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 | 539 |
540 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { | 540 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { |
541 } | 541 } |
542 | 542 |
543 bool EndToEndTest::ShouldCreateReceivers() const { | 543 bool EndToEndTest::ShouldCreateReceivers() const { |
544 return true; | 544 return true; |
545 } | 545 } |
546 | 546 |
547 } // namespace test | 547 } // namespace test |
548 } // namespace webrtc | 548 } // namespace webrtc |
OLD | NEW |