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

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

Issue 24579003: Clean up remaining unused globals (on mac). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: staticmedia Created 7 years, 2 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
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" 13 #include "base/win/windows_version.h"
14 #include "chrome/browser/media/webrtc_browsertest_base.h" 14 #include "chrome/browser/media/webrtc_browsertest_base.h"
15 #include "chrome/browser/media/webrtc_browsertest_common.h" 15 #include "chrome/browser/media/webrtc_browsertest_common.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/ui/browser.h" 17 #include "chrome/browser/ui/browser.h"
18 #include "chrome/browser/ui/browser_tabstrip.h" 18 #include "chrome/browser/ui/browser_tabstrip.h"
19 #include "chrome/browser/ui/tabs/tab_strip_model.h" 19 #include "chrome/browser/ui/tabs/tab_strip_model.h"
20 #include "chrome/common/chrome_paths.h" 20 #include "chrome/common/chrome_paths.h"
21 #include "chrome/common/chrome_switches.h" 21 #include "chrome/common/chrome_switches.h"
22 #include "chrome/test/base/ui_test_utils.h" 22 #include "chrome/test/base/ui_test_utils.h"
23 #include "chrome/test/ui/ui_test.h" 23 #include "chrome/test/ui/ui_test.h"
24 #include "content/public/test/browser_test_utils.h" 24 #include "content/public/test/browser_test_utils.h"
25 #include "net/test/embedded_test_server/embedded_test_server.h" 25 #include "net/test/embedded_test_server/embedded_test_server.h"
26 #include "testing/perf/perf_test.h" 26 #include "testing/perf/perf_test.h"
27 27
28 static const base::FilePath::CharType kPeerConnectionServer[] =
29 #if defined(OS_WIN)
30 FILE_PATH_LITERAL("peerconnection_server.exe");
31 #else
32 FILE_PATH_LITERAL("peerconnection_server");
33 #endif
34
35 static const base::FilePath::CharType kReferenceFile[] = 28 static const base::FilePath::CharType kReferenceFile[] =
36 #if defined (OS_WIN) 29 #if defined (OS_WIN)
37 FILE_PATH_LITERAL("pyauto_private/webrtc/human-voice-win.wav"); 30 FILE_PATH_LITERAL("pyauto_private/webrtc/human-voice-win.wav");
38 #else 31 #else
39 FILE_PATH_LITERAL("pyauto_private/webrtc/human-voice-linux.wav"); 32 FILE_PATH_LITERAL("pyauto_private/webrtc/human-voice-linux.wav");
40 #endif 33 #endif
41 34
42 // The javascript will load the reference file relative to its location, 35 // The javascript will load the reference file relative to its location,
43 // which is in /webrtc on the web server. Therefore, prepend a '..' traversal. 36 // which is in /webrtc on the web server. Therefore, prepend a '..' traversal.
44 static const char kReferenceFileRelativeUrl[] = 37 static const char kReferenceFileRelativeUrl[] =
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 &raw_mos, &mos_lqo)); 485 &raw_mos, &mos_lqo));
493 486
494 perf_test::PrintResult("audio_pesq", "", "raw_mos", raw_mos, "score", true); 487 perf_test::PrintResult("audio_pesq", "", "raw_mos", raw_mos, "score", true);
495 perf_test::PrintResult("audio_pesq", "", "mos_lqo", mos_lqo, "score", true); 488 perf_test::PrintResult("audio_pesq", "", "mos_lqo", mos_lqo, "score", true);
496 489
497 EXPECT_TRUE(base::DeleteFile(recording, false)); 490 EXPECT_TRUE(base::DeleteFile(recording, false));
498 EXPECT_TRUE(base::DeleteFile(trimmed_recording, false)); 491 EXPECT_TRUE(base::DeleteFile(trimmed_recording, false));
499 492
500 ASSERT_TRUE(peerconnection_server_.Stop()); 493 ASSERT_TRUE(peerconnection_server_.Stop());
501 } 494 }
OLDNEW
« no previous file with comments | « chrome/browser/importer/firefox_importer_browsertest.cc ('k') | chrome/browser/media/encrypted_media_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698