OLD | NEW |
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 "content/public/test/browser_test_utils.h" | 23 #include "content/public/test/browser_test_utils.h" |
| 24 #include "media/base/media_switches.h" |
24 #include "net/test/embedded_test_server/embedded_test_server.h" | 25 #include "net/test/embedded_test_server/embedded_test_server.h" |
25 #include "testing/perf/perf_test.h" | 26 #include "testing/perf/perf_test.h" |
26 | 27 |
27 // These are relative to the reference file dir defined by | 28 // These are relative to the reference file dir defined by |
28 // webrtc_browsertest_common.h (i.e. chrome/test/data/webrtc/resources). | 29 // webrtc_browsertest_common.h (i.e. chrome/test/data/webrtc/resources). |
29 static const base::FilePath::CharType kReferenceFile[] = | 30 static const base::FilePath::CharType kReferenceFile[] = |
30 #if defined (OS_WIN) | 31 #if defined (OS_WIN) |
31 FILE_PATH_LITERAL("human-voice-win.wav"); | 32 FILE_PATH_LITERAL("human-voice-win.wav"); |
32 #else | 33 #else |
33 FILE_PATH_LITERAL("human-voice-linux.wav"); | 34 FILE_PATH_LITERAL("human-voice-linux.wav"); |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 &raw_mos, &mos_lqo)); | 435 &raw_mos, &mos_lqo)); |
435 | 436 |
436 perf_test::PrintResult("audio_pesq", "", "raw_mos", raw_mos, "score", true); | 437 perf_test::PrintResult("audio_pesq", "", "raw_mos", raw_mos, "score", true); |
437 perf_test::PrintResult("audio_pesq", "", "mos_lqo", mos_lqo, "score", true); | 438 perf_test::PrintResult("audio_pesq", "", "mos_lqo", mos_lqo, "score", true); |
438 | 439 |
439 EXPECT_TRUE(base::DeleteFile(recording, false)); | 440 EXPECT_TRUE(base::DeleteFile(recording, false)); |
440 EXPECT_TRUE(base::DeleteFile(trimmed_recording, false)); | 441 EXPECT_TRUE(base::DeleteFile(trimmed_recording, false)); |
441 | 442 |
442 ASSERT_TRUE(peerconnection_server_.Stop()); | 443 ASSERT_TRUE(peerconnection_server_.Stop()); |
443 } | 444 } |
OLD | NEW |