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