| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 } | 241 } |
| 242 } | 242 } |
| 243 | 243 |
| 244 void CallTest::CreateFrameGeneratorCapturerWithDrift(Clock* clock, | 244 void CallTest::CreateFrameGeneratorCapturerWithDrift(Clock* clock, |
| 245 float speed, | 245 float speed, |
| 246 int framerate, | 246 int framerate, |
| 247 int width, | 247 int width, |
| 248 int height) { | 248 int height) { |
| 249 frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create( | 249 frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create( |
| 250 width, height, framerate * speed, clock)); | 250 width, height, framerate * speed, clock)); |
| 251 video_send_stream_->SetSource(frame_generator_capturer_.get()); | 251 video_send_stream_->SetSource( |
| 252 frame_generator_capturer_.get(), |
| 253 VideoSendStream::DegradationPreference::kBalanced); |
| 252 } | 254 } |
| 253 | 255 |
| 254 void CallTest::CreateFrameGeneratorCapturer(int framerate, | 256 void CallTest::CreateFrameGeneratorCapturer(int framerate, |
| 255 int width, | 257 int width, |
| 256 int height) { | 258 int height) { |
| 257 frame_generator_capturer_.reset( | 259 frame_generator_capturer_.reset( |
| 258 test::FrameGeneratorCapturer::Create(width, height, framerate, clock_)); | 260 test::FrameGeneratorCapturer::Create(width, height, framerate, clock_)); |
| 259 video_send_stream_->SetSource(frame_generator_capturer_.get()); | 261 video_send_stream_->SetSource( |
| 262 frame_generator_capturer_.get(), |
| 263 VideoSendStream::DegradationPreference::kBalanced); |
| 260 } | 264 } |
| 261 | 265 |
| 262 void CallTest::CreateFakeAudioDevices() { | 266 void CallTest::CreateFakeAudioDevices() { |
| 263 fake_send_audio_device_.reset(new FakeAudioDevice( | 267 fake_send_audio_device_.reset(new FakeAudioDevice( |
| 264 clock_, test::ResourcePath("voice_engine/audio_long16", "pcm"), | 268 clock_, test::ResourcePath("voice_engine/audio_long16", "pcm"), |
| 265 DriftingClock::kNoDrift)); | 269 DriftingClock::kNoDrift)); |
| 266 fake_recv_audio_device_.reset(new FakeAudioDevice( | 270 fake_recv_audio_device_.reset(new FakeAudioDevice( |
| 267 clock_, test::ResourcePath("voice_engine/audio_long16", "pcm"), | 271 clock_, test::ResourcePath("voice_engine/audio_long16", "pcm"), |
| 268 DriftingClock::kNoDrift)); | 272 DriftingClock::kNoDrift)); |
| 269 } | 273 } |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 | 441 |
| 438 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { | 442 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { |
| 439 } | 443 } |
| 440 | 444 |
| 441 bool EndToEndTest::ShouldCreateReceivers() const { | 445 bool EndToEndTest::ShouldCreateReceivers() const { |
| 442 return true; | 446 return true; |
| 443 } | 447 } |
| 444 | 448 |
| 445 } // namespace test | 449 } // namespace test |
| 446 } // namespace webrtc | 450 } // namespace webrtc |
| OLD | NEW |