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 #include "webrtc/base/checks.h" | 10 #include "webrtc/base/checks.h" |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 audio_config.rtp.remote_ssrc = audio_send_config_.rtp.ssrc; | 233 audio_config.rtp.remote_ssrc = audio_send_config_.rtp.ssrc; |
234 audio_config.decoder_factory = decoder_factory_; | 234 audio_config.decoder_factory = decoder_factory_; |
235 audio_receive_configs_.push_back(audio_config); | 235 audio_receive_configs_.push_back(audio_config); |
236 } | 236 } |
237 } | 237 } |
238 | 238 |
239 void CallTest::CreateFrameGeneratorCapturerWithDrift(Clock* clock, | 239 void CallTest::CreateFrameGeneratorCapturerWithDrift(Clock* clock, |
240 float speed) { | 240 float speed) { |
241 VideoStream stream = video_encoder_config_.streams.back(); | 241 VideoStream stream = video_encoder_config_.streams.back(); |
242 frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create( | 242 frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create( |
243 video_send_stream_->Input(), stream.width, stream.height, | 243 stream.width, stream.height, stream.max_framerate * speed, clock)); |
244 stream.max_framerate * speed, clock)); | 244 video_send_stream_->SetSource(frame_generator_capturer_.get()); |
245 } | 245 } |
246 | 246 |
247 void CallTest::CreateFrameGeneratorCapturer() { | 247 void CallTest::CreateFrameGeneratorCapturer() { |
248 VideoStream stream = video_encoder_config_.streams.back(); | 248 VideoStream stream = video_encoder_config_.streams.back(); |
249 frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create( | 249 frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create( |
250 video_send_stream_->Input(), stream.width, stream.height, | 250 stream.width, stream.height, stream.max_framerate, clock_)); |
251 stream.max_framerate, clock_)); | 251 video_send_stream_->SetSource(frame_generator_capturer_.get()); |
252 } | 252 } |
253 | 253 |
254 void CallTest::CreateFakeAudioDevices() { | 254 void CallTest::CreateFakeAudioDevices() { |
255 fake_send_audio_device_.reset(new FakeAudioDevice( | 255 fake_send_audio_device_.reset(new FakeAudioDevice( |
256 clock_, test::ResourcePath("voice_engine/audio_long16", "pcm"), | 256 clock_, test::ResourcePath("voice_engine/audio_long16", "pcm"), |
257 DriftingClock::kNoDrift)); | 257 DriftingClock::kNoDrift)); |
258 fake_recv_audio_device_.reset(new FakeAudioDevice( | 258 fake_recv_audio_device_.reset(new FakeAudioDevice( |
259 clock_, test::ResourcePath("voice_engine/audio_long16", "pcm"), | 259 clock_, test::ResourcePath("voice_engine/audio_long16", "pcm"), |
260 DriftingClock::kNoDrift)); | 260 DriftingClock::kNoDrift)); |
261 } | 261 } |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 | 430 |
431 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { | 431 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { |
432 } | 432 } |
433 | 433 |
434 bool EndToEndTest::ShouldCreateReceivers() const { | 434 bool EndToEndTest::ShouldCreateReceivers() const { |
435 return true; | 435 return true; |
436 } | 436 } |
437 | 437 |
438 } // namespace test | 438 } // namespace test |
439 } // namespace webrtc | 439 } // namespace webrtc |
OLD | NEW |