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" |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 EXPECT_EQ("ok-call-hung-up", ExecuteJavascript("hangUp()", from_tab)); | 149 EXPECT_EQ("ok-call-hung-up", ExecuteJavascript("hangUp()", from_tab)); |
150 } | 150 } |
151 | 151 |
152 void WaitUntilHangupVerified(content::WebContents* tab_contents) { | 152 void WaitUntilHangupVerified(content::WebContents* tab_contents) { |
153 EXPECT_TRUE(PollingWaitUntil("getPeerConnectionReadyState()", | 153 EXPECT_TRUE(PollingWaitUntil("getPeerConnectionReadyState()", |
154 "no-peer-connection", tab_contents)); | 154 "no-peer-connection", tab_contents)); |
155 } | 155 } |
156 | 156 |
157 base::FilePath CreateTemporaryWaveFile() { | 157 base::FilePath CreateTemporaryWaveFile() { |
158 base::FilePath filename; | 158 base::FilePath filename; |
159 EXPECT_TRUE(file_util::CreateTemporaryFile(&filename)); | 159 EXPECT_TRUE(base::CreateTemporaryFile(&filename)); |
160 base::FilePath wav_filename = | 160 base::FilePath wav_filename = |
161 filename.AddExtension(FILE_PATH_LITERAL(".wav")); | 161 filename.AddExtension(FILE_PATH_LITERAL(".wav")); |
162 EXPECT_TRUE(base::Move(filename, wav_filename)); | 162 EXPECT_TRUE(base::Move(filename, wav_filename)); |
163 return wav_filename; | 163 return wav_filename; |
164 } | 164 } |
165 | 165 |
166 PeerConnectionServerRunner peerconnection_server_; | 166 PeerConnectionServerRunner peerconnection_server_; |
167 }; | 167 }; |
168 | 168 |
169 class AudioRecorder { | 169 class AudioRecorder { |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 &raw_mos, &mos_lqo)); | 463 &raw_mos, &mos_lqo)); |
464 | 464 |
465 perf_test::PrintResult("audio_pesq", "", "raw_mos", raw_mos, "score", true); | 465 perf_test::PrintResult("audio_pesq", "", "raw_mos", raw_mos, "score", true); |
466 perf_test::PrintResult("audio_pesq", "", "mos_lqo", mos_lqo, "score", true); | 466 perf_test::PrintResult("audio_pesq", "", "mos_lqo", mos_lqo, "score", true); |
467 | 467 |
468 EXPECT_TRUE(base::DeleteFile(recording, false)); | 468 EXPECT_TRUE(base::DeleteFile(recording, false)); |
469 EXPECT_TRUE(base::DeleteFile(trimmed_recording, false)); | 469 EXPECT_TRUE(base::DeleteFile(trimmed_recording, false)); |
470 | 470 |
471 ASSERT_TRUE(peerconnection_server_.Stop()); | 471 ASSERT_TRUE(peerconnection_server_.Stop()); |
472 } | 472 } |
OLD | NEW |