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

Side by Side Diff: webrtc/call/call_perf_tests.cc

Issue 1689163002: removed five redundant avsync tests to make webrtc_perf_test faster (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 <algorithm> 10 #include <algorithm>
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 voe_base->Release(); 370 voe_base->Release();
371 voe_codec->Release(); 371 voe_codec->Release();
372 voe_network->Release(); 372 voe_network->Release();
373 voe_sync->Release(); 373 voe_sync->Release();
374 374
375 DestroyCalls(); 375 DestroyCalls();
376 376
377 VoiceEngine::Delete(voice_engine); 377 VoiceEngine::Delete(voice_engine);
378 } 378 }
379 379
380 TEST_F(CallPerfTest, PlaysOutAudioAndVideoInSyncWithAudioCreatedFirst) {
381 TestAudioVideoSync(false, true, DriftingClock::kNoDrift,
382 DriftingClock::kNoDrift, DriftingClock::kNoDrift);
383 }
384
385 TEST_F(CallPerfTest, PlaysOutAudioAndVideoInSyncWithVideoCreatedFirst) {
386 TestAudioVideoSync(false, false, DriftingClock::kNoDrift,
387 DriftingClock::kNoDrift, DriftingClock::kNoDrift);
388 }
389
390 TEST_F(CallPerfTest, PlaysOutAudioAndVideoInSyncWithFec) {
391 TestAudioVideoSync(true, false, DriftingClock::kNoDrift,
392 DriftingClock::kNoDrift, DriftingClock::kNoDrift);
393 }
394
395 // TODO(danilchap): Reenable after adding support for frame capture clock 380 // TODO(danilchap): Reenable after adding support for frame capture clock
396 // that is not in sync with local TickTime clock. 381 // that is not in sync with local TickTime clock.
397 TEST_F(CallPerfTest, DISABLED_PlaysOutAudioAndVideoInSyncWithVideoNtpDrift) { 382 TEST_F(CallPerfTest, DISABLED_PlaysOutAudioAndVideoInSyncWithVideoNtpDrift) {
398 TestAudioVideoSync(false, true, DriftingClock::PercentsFaster(10.0f), 383 TestAudioVideoSync(false, true, DriftingClock::PercentsFaster(10.0f),
399 DriftingClock::kNoDrift, DriftingClock::kNoDrift); 384 DriftingClock::kNoDrift, DriftingClock::kNoDrift);
400 } 385 }
401 386
402 TEST_F(CallPerfTest, PlaysOutAudioAndVideoInSyncWithAudioRtpDrift) {
403 TestAudioVideoSync(false, true, DriftingClock::kNoDrift,
404 DriftingClock::kNoDrift,
405 DriftingClock::PercentsFaster(30.0f));
406 }
407
408 TEST_F(CallPerfTest, PlaysOutAudioAndVideoInSyncWithVideoRtpDrift) {
409 TestAudioVideoSync(false, true, DriftingClock::kNoDrift,
410 DriftingClock::PercentsFaster(30.0f),
411 DriftingClock::kNoDrift);
412 }
413
414 TEST_F(CallPerfTest, PlaysOutAudioAndVideoInSyncWithAudioFasterThanVideoDrift) { 387 TEST_F(CallPerfTest, PlaysOutAudioAndVideoInSyncWithAudioFasterThanVideoDrift) {
415 TestAudioVideoSync(false, true, DriftingClock::kNoDrift, 388 TestAudioVideoSync(false, true, DriftingClock::kNoDrift,
416 DriftingClock::PercentsSlower(30.0f), 389 DriftingClock::PercentsSlower(30.0f),
417 DriftingClock::PercentsFaster(30.0f)); 390 DriftingClock::PercentsFaster(30.0f));
418 } 391 }
419 392
420 TEST_F(CallPerfTest, PlaysOutAudioAndVideoInSyncWithVideoFasterThanAudioDrift) { 393 TEST_F(CallPerfTest, PlaysOutAudioAndVideoInSyncWithVideoFasterThanAudioDrift) {
421 TestAudioVideoSync(false, true, DriftingClock::kNoDrift, 394 TestAudioVideoSync(true, false, DriftingClock::kNoDrift,
pbos-webrtc 2016/02/15 09:18:20 Put a comment above this test and the one below to
danilchap 2016/02/15 09:45:36 Proper code doesn't need comments Done with consta
422 DriftingClock::PercentsFaster(30.0f), 395 DriftingClock::PercentsFaster(30.0f),
423 DriftingClock::PercentsSlower(30.0f)); 396 DriftingClock::PercentsSlower(30.0f));
424 } 397 }
425 398
426 void CallPerfTest::TestCaptureNtpTime(const FakeNetworkPipe::Config& net_config, 399 void CallPerfTest::TestCaptureNtpTime(const FakeNetworkPipe::Config& net_config,
427 int threshold_ms, 400 int threshold_ms,
428 int start_time_ms, 401 int start_time_ms,
429 int run_time_ms) { 402 int run_time_ms) {
430 class CaptureNtpTimeObserver : public test::EndToEndTest, 403 class CaptureNtpTimeObserver : public test::EndToEndTest,
431 public VideoRenderer { 404 public VideoRenderer {
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 int encoder_inits_; 769 int encoder_inits_;
797 uint32_t last_set_bitrate_; 770 uint32_t last_set_bitrate_;
798 VideoSendStream* send_stream_; 771 VideoSendStream* send_stream_;
799 VideoEncoderConfig encoder_config_; 772 VideoEncoderConfig encoder_config_;
800 } test; 773 } test;
801 774
802 RunBaseTest(&test); 775 RunBaseTest(&test);
803 } 776 }
804 777
805 } // namespace webrtc 778 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698