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

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

Issue 99923002: Move temp file functions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « chrome/browser/jumplist_win.cc ('k') | 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"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/jumplist_win.cc ('k') | chrome/browser/media/chrome_webrtc_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698