Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: webrtc/test/call_test.cc

Issue 2781433002: Reland of Add framerate to VideoSinkWants and ability to signal on overuse (Closed)
Patch Set: Rmoved accidentally partially included unrelated diff Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 283
284 void CallTest::CreateFrameGeneratorCapturerWithDrift(Clock* clock, 284 void CallTest::CreateFrameGeneratorCapturerWithDrift(Clock* clock,
285 float speed, 285 float speed,
286 int framerate, 286 int framerate,
287 int width, 287 int width,
288 int height) { 288 int height) {
289 frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create( 289 frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create(
290 width, height, framerate * speed, clock)); 290 width, height, framerate * speed, clock));
291 video_send_stream_->SetSource( 291 video_send_stream_->SetSource(
292 frame_generator_capturer_.get(), 292 frame_generator_capturer_.get(),
293 VideoSendStream::DegradationPreference::kBalanced); 293 VideoSendStream::DegradationPreference::kMaintainFramerate);
294 } 294 }
295 295
296 void CallTest::CreateFrameGeneratorCapturer(int framerate, 296 void CallTest::CreateFrameGeneratorCapturer(int framerate,
297 int width, 297 int width,
298 int height) { 298 int height) {
299 frame_generator_capturer_.reset( 299 frame_generator_capturer_.reset(
300 test::FrameGeneratorCapturer::Create(width, height, framerate, clock_)); 300 test::FrameGeneratorCapturer::Create(width, height, framerate, clock_));
301 video_send_stream_->SetSource( 301 video_send_stream_->SetSource(
302 frame_generator_capturer_.get(), 302 frame_generator_capturer_.get(),
303 VideoSendStream::DegradationPreference::kBalanced); 303 VideoSendStream::DegradationPreference::kMaintainFramerate);
304 } 304 }
305 305
306 void CallTest::CreateFakeAudioDevices( 306 void CallTest::CreateFakeAudioDevices(
307 std::unique_ptr<FakeAudioDevice::Capturer> capturer, 307 std::unique_ptr<FakeAudioDevice::Capturer> capturer,
308 std::unique_ptr<FakeAudioDevice::Renderer> renderer) { 308 std::unique_ptr<FakeAudioDevice::Renderer> renderer) {
309 fake_send_audio_device_.reset(new FakeAudioDevice( 309 fake_send_audio_device_.reset(new FakeAudioDevice(
310 std::move(capturer), nullptr, 1.f)); 310 std::move(capturer), nullptr, 1.f));
311 fake_recv_audio_device_.reset(new FakeAudioDevice( 311 fake_recv_audio_device_.reset(new FakeAudioDevice(
312 nullptr, std::move(renderer), 1.f)); 312 nullptr, std::move(renderer), 1.f));
313 } 313 }
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 523
524 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { 524 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) {
525 } 525 }
526 526
527 bool EndToEndTest::ShouldCreateReceivers() const { 527 bool EndToEndTest::ShouldCreateReceivers() const {
528 return true; 528 return true;
529 } 529 }
530 530
531 } // namespace test 531 } // namespace test
532 } // namespace webrtc 532 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698