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_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
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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 AssertNoAsynchronousErrors(right_tab); 220 AssertNoAsynchronousErrors(right_tab);
221 221
222 ASSERT_TRUE(peerconnection_server_.Stop()); 222 ASSERT_TRUE(peerconnection_server_.Stop());
223 } 223 }
224 224
225 IN_PROC_BROWSER_TEST_F(MAYBE_WebrtcBrowserTest, MANUAL_CpuUsage15Seconds) { 225 IN_PROC_BROWSER_TEST_F(MAYBE_WebrtcBrowserTest, MANUAL_CpuUsage15Seconds) {
226 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); 226 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
227 ASSERT_TRUE(peerconnection_server_.Start()); 227 ASSERT_TRUE(peerconnection_server_.Start());
228 228
229 base::FilePath results_file; 229 base::FilePath results_file;
230 ASSERT_TRUE(file_util::CreateTemporaryFile(&results_file)); 230 ASSERT_TRUE(base::CreateTemporaryFile(&results_file));
231 231
232 content::WebContents* left_tab = OpenTestPageAndGetUserMediaInNewTab(); 232 content::WebContents* left_tab = OpenTestPageAndGetUserMediaInNewTab();
233 233
234 #if defined(OS_MACOSX) 234 #if defined(OS_MACOSX)
235 // Don't measure renderer CPU on mac: requires a mach broker we don't have 235 // Don't measure renderer CPU on mac: requires a mach broker we don't have
236 // access to from the browser test. 236 // access to from the browser test.
237 scoped_ptr<base::ProcessMetrics> browser_process_metrics( 237 scoped_ptr<base::ProcessMetrics> browser_process_metrics(
238 base::ProcessMetrics::CreateProcessMetrics( 238 base::ProcessMetrics::CreateProcessMetrics(
239 base::Process::Current().handle(), NULL)); 239 base::Process::Current().handle(), NULL));
240 browser_process_metrics->GetCPUUsage(); 240 browser_process_metrics->GetCPUUsage();
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 350
351 HangUp(left_tab); 351 HangUp(left_tab);
352 WaitUntilHangupVerified(left_tab); 352 WaitUntilHangupVerified(left_tab);
353 WaitUntilHangupVerified(right_tab); 353 WaitUntilHangupVerified(right_tab);
354 354
355 AssertNoAsynchronousErrors(left_tab); 355 AssertNoAsynchronousErrors(left_tab);
356 AssertNoAsynchronousErrors(right_tab); 356 AssertNoAsynchronousErrors(right_tab);
357 357
358 ASSERT_TRUE(peerconnection_server_.Stop()); 358 ASSERT_TRUE(peerconnection_server_.Stop());
359 } 359 }
OLDNEW
« no previous file with comments | « chrome/browser/media/chrome_webrtc_audio_quality_browsertest.cc ('k') | chrome/browser/media/webrtc_log_uploader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698