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