| 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/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 #include "chrome/browser/media/webrtc_browsertest_base.h" | 12 #include "chrome/browser/media/webrtc_browsertest_base.h" |
| 13 #include "chrome/browser/media/webrtc_browsertest_common.h" | 13 #include "chrome/browser/media/webrtc_browsertest_common.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/browser/ui/browser_tabstrip.h" | 16 #include "chrome/browser/ui/browser_tabstrip.h" |
| 17 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 17 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 18 #include "chrome/common/chrome_paths.h" | 18 #include "chrome/common/chrome_paths.h" |
| 19 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
| 20 #include "chrome/test/base/ui_test_utils.h" | 20 #include "chrome/test/base/ui_test_utils.h" |
| 21 #include "chrome/test/perf/perf_test.h" | |
| 22 #include "chrome/test/ui/ui_test.h" | 21 #include "chrome/test/ui/ui_test.h" |
| 23 #include "content/public/test/browser_test_utils.h" | 22 #include "content/public/test/browser_test_utils.h" |
| 24 #include "net/test/embedded_test_server/embedded_test_server.h" | 23 #include "net/test/embedded_test_server/embedded_test_server.h" |
| 24 #include "testing/perf/perf_test.h" |
| 25 | 25 |
| 26 static const base::FilePath::CharType kPeerConnectionServer[] = | 26 static const base::FilePath::CharType kPeerConnectionServer[] = |
| 27 #if defined(OS_WIN) | 27 #if defined(OS_WIN) |
| 28 FILE_PATH_LITERAL("peerconnection_server.exe"); | 28 FILE_PATH_LITERAL("peerconnection_server.exe"); |
| 29 #else | 29 #else |
| 30 FILE_PATH_LITERAL("peerconnection_server"); | 30 FILE_PATH_LITERAL("peerconnection_server"); |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 static const base::FilePath::CharType kReferenceFile[] = | 33 static const base::FilePath::CharType kReferenceFile[] = |
| 34 #if defined (OS_WIN) | 34 #if defined (OS_WIN) |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 GetTestDataDir().Append(kReferenceFile); | 475 GetTestDataDir().Append(kReferenceFile); |
| 476 RunPesq(reference_file_in_test_dir, trimmed_recording, 16000, &raw_mos, | 476 RunPesq(reference_file_in_test_dir, trimmed_recording, 16000, &raw_mos, |
| 477 &mos_lqo); | 477 &mos_lqo); |
| 478 | 478 |
| 479 perf_test::PrintResult("audio_pesq", "", "raw_mos", raw_mos, "score", true); | 479 perf_test::PrintResult("audio_pesq", "", "raw_mos", raw_mos, "score", true); |
| 480 perf_test::PrintResult("audio_pesq", "", "mos_lqo", mos_lqo, "score", true); | 480 perf_test::PrintResult("audio_pesq", "", "mos_lqo", mos_lqo, "score", true); |
| 481 | 481 |
| 482 EXPECT_TRUE(base::DeleteFile(recording, false)); | 482 EXPECT_TRUE(base::DeleteFile(recording, false)); |
| 483 EXPECT_TRUE(base::DeleteFile(trimmed_recording, false)); | 483 EXPECT_TRUE(base::DeleteFile(trimmed_recording, false)); |
| 484 } | 484 } |
| OLD | NEW |