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

Side by Side Diff: chrome/browser/media/chrome_webrtc_audio_quality_browsertest.cc

Issue 294053002: Split regular and perf WebRTC browser tests, remove CPU test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing js files that accidentally got uploaded Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/media/chrome_webrtc_browsertest.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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <ctime> 5 #include <ctime>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/process/launch.h" 10 #include "base/process/launch.h"
11 #include "base/scoped_native_library.h" 11 #include "base/scoped_native_library.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "base/win/windows_version.h"
14 #include "chrome/browser/media/webrtc_browsertest_base.h" 13 #include "chrome/browser/media/webrtc_browsertest_base.h"
15 #include "chrome/browser/media/webrtc_browsertest_common.h" 14 #include "chrome/browser/media/webrtc_browsertest_common.h"
16 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/ui/browser.h" 16 #include "chrome/browser/ui/browser.h"
18 #include "chrome/browser/ui/browser_tabstrip.h" 17 #include "chrome/browser/ui/browser_tabstrip.h"
19 #include "chrome/browser/ui/tabs/tab_strip_model.h" 18 #include "chrome/browser/ui/tabs/tab_strip_model.h"
20 #include "chrome/common/chrome_paths.h" 19 #include "chrome/common/chrome_paths.h"
21 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
22 #include "chrome/test/base/ui_test_utils.h" 21 #include "chrome/test/base/ui_test_utils.h"
23 #include "content/public/test/browser_test_utils.h" 22 #include "content/public/test/browser_test_utils.h"
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 342
344 #if defined(OS_LINUX) || defined(OS_WIN) 343 #if defined(OS_LINUX) || defined(OS_WIN)
345 // Only implemented on Linux and Windows for now. 344 // Only implemented on Linux and Windows for now.
346 #define MAYBE_MANUAL_TestAudioQuality MANUAL_TestAudioQuality 345 #define MAYBE_MANUAL_TestAudioQuality MANUAL_TestAudioQuality
347 #else 346 #else
348 #define MAYBE_MANUAL_TestAudioQuality DISABLED_MANUAL_TestAudioQuality 347 #define MAYBE_MANUAL_TestAudioQuality DISABLED_MANUAL_TestAudioQuality
349 #endif 348 #endif
350 349
351 IN_PROC_BROWSER_TEST_P(WebRtcAudioQualityBrowserTest, 350 IN_PROC_BROWSER_TEST_P(WebRtcAudioQualityBrowserTest,
352 MAYBE_MANUAL_TestAudioQuality) { 351 MAYBE_MANUAL_TestAudioQuality) {
353 #if defined(OS_WIN) 352 if (OnWinXp()) {
354 if (base::win::GetVersion() < base::win::VERSION_VISTA) {
355 // It would take work to implement this on XP; not prioritized right now.
356 LOG(ERROR) << "This test is not implemented for Windows XP."; 353 LOG(ERROR) << "This test is not implemented for Windows XP.";
357 return; 354 return;
358 } 355 }
359 #endif
360 ASSERT_TRUE(test::HasReferenceFilesInCheckout()); 356 ASSERT_TRUE(test::HasReferenceFilesInCheckout());
361 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); 357 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
362 358
363 ASSERT_TRUE(ForceMicrophoneVolumeTo100Percent()); 359 ASSERT_TRUE(ForceMicrophoneVolumeTo100Percent());
364 360
365 ui_test_utils::NavigateToURL( 361 ui_test_utils::NavigateToURL(
366 browser(), embedded_test_server()->GetURL(kMainWebrtcTestHtmlPage)); 362 browser(), embedded_test_server()->GetURL(kMainWebrtcTestHtmlPage));
367 content::WebContents* left_tab = 363 content::WebContents* left_tab =
368 browser()->tab_strip_model()->GetActiveWebContents(); 364 browser()->tab_strip_model()->GetActiveWebContents();
369 365
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 test::GetReferenceFilesDir().Append(kReferenceFile); 412 test::GetReferenceFilesDir().Append(kReferenceFile);
417 ASSERT_TRUE(RunPesq(reference_file_in_test_dir, trimmed_recording, 16000, 413 ASSERT_TRUE(RunPesq(reference_file_in_test_dir, trimmed_recording, 16000,
418 &raw_mos, &mos_lqo)); 414 &raw_mos, &mos_lqo));
419 415
420 perf_test::PrintResult("audio_pesq", "", "raw_mos", raw_mos, "score", true); 416 perf_test::PrintResult("audio_pesq", "", "raw_mos", raw_mos, "score", true);
421 perf_test::PrintResult("audio_pesq", "", "mos_lqo", mos_lqo, "score", true); 417 perf_test::PrintResult("audio_pesq", "", "mos_lqo", mos_lqo, "score", true);
422 418
423 EXPECT_TRUE(base::DeleteFile(recording, false)); 419 EXPECT_TRUE(base::DeleteFile(recording, false));
424 EXPECT_TRUE(base::DeleteFile(trimmed_recording, false)); 420 EXPECT_TRUE(base::DeleteFile(trimmed_recording, false));
425 } 421 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/chrome_webrtc_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698