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

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

Issue 2708723002: added WebRTC-QuickPerfTest to RampUpTests and CallPerfTests (Closed)
Patch Set: implemented Stefan@ comments Created 3 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 | webrtc/modules/audio_coding/neteq/test/neteq_performance_unittest.cc » ('j') | 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 10
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 281
282 voe_base->DeleteChannel(send_channel_id); 282 voe_base->DeleteChannel(send_channel_id);
283 voe_base->DeleteChannel(recv_channel_id); 283 voe_base->DeleteChannel(recv_channel_id);
284 voe_base->Release(); 284 voe_base->Release();
285 285
286 DestroyCalls(); 286 DestroyCalls();
287 287
288 VoiceEngine::Delete(voice_engine); 288 VoiceEngine::Delete(voice_engine);
289 289
290 observer.PrintResults(); 290 observer.PrintResults();
291 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.AVSyncOffsetInMs")); 291
292 // In quick test synchronization may not be achieved in time.
293 if (field_trial::FindFullName("WebRTC-QuickPerfTest") != "Enabled") {
294 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.AVSyncOffsetInMs"));
295 }
292 } 296 }
293 297
294 TEST_F(CallPerfTest, PlaysOutAudioAndVideoInSyncWithVideoNtpDrift) { 298 TEST_F(CallPerfTest, PlaysOutAudioAndVideoInSyncWithVideoNtpDrift) {
295 TestAudioVideoSync(FecMode::kOff, CreateOrder::kAudioFirst, 299 TestAudioVideoSync(FecMode::kOff, CreateOrder::kAudioFirst,
296 DriftingClock::PercentsFaster(10.0f), 300 DriftingClock::PercentsFaster(10.0f),
297 DriftingClock::kNoDrift, DriftingClock::kNoDrift); 301 DriftingClock::kNoDrift, DriftingClock::kNoDrift);
298 } 302 }
299 303
300 TEST_F(CallPerfTest, PlaysOutAudioAndVideoInSyncWithAudioFasterThanVideoDrift) { 304 TEST_F(CallPerfTest, PlaysOutAudioAndVideoInSyncWithAudioFasterThanVideoDrift) {
301 TestAudioVideoSync(FecMode::kOff, CreateOrder::kAudioFirst, 305 TestAudioVideoSync(FecMode::kOff, CreateOrder::kAudioFirst,
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 uint32_t last_set_bitrate_kbps_; 739 uint32_t last_set_bitrate_kbps_;
736 VideoSendStream* send_stream_; 740 VideoSendStream* send_stream_;
737 test::FrameGeneratorCapturer* frame_generator_; 741 test::FrameGeneratorCapturer* frame_generator_;
738 VideoEncoderConfig encoder_config_; 742 VideoEncoderConfig encoder_config_;
739 } test; 743 } test;
740 744
741 RunBaseTest(&test); 745 RunBaseTest(&test);
742 } 746 }
743 747
744 } // namespace webrtc 748 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/neteq/test/neteq_performance_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698