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

Side by Side Diff: chrome_frame/test/reliability/page_load_test.cc

Issue 18383003: Move DeleteAfterReboot and Move to base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file provides reliablity tests which run for ChromeFrame. 5 // This file provides reliablity tests which run for ChromeFrame.
6 // 6 //
7 // Usage: 7 // Usage:
8 // <reliability test exe> --list=file --startline=start --endline=end [...] 8 // <reliability test exe> --list=file --startline=start --endline=end [...]
9 // Upon invocation, it visits each of the URLs on line numbers between start 9 // Upon invocation, it visits each of the URLs on line numbers between start
10 // and end, inclusive, stored in the input file. The line number starts from 1. 10 // and end, inclusive, stored in the input file. The line number starts from 1.
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 std::string suffix("_"); 362 std::string suffix("_");
363 suffix.append(base::IntToString(index)); 363 suffix.append(base::IntToString(index));
364 return debug_log_path.InsertBeforeExtensionASCII(suffix); 364 return debug_log_path.InsertBeforeExtensionASCII(suffix);
365 } 365 }
366 366
367 void SaveDebugLog(const base::FilePath& log_path, const std::wstring& log_id, 367 void SaveDebugLog(const base::FilePath& log_path, const std::wstring& log_id,
368 std::ofstream& log_file, int index) { 368 std::ofstream& log_file, int index) {
369 if (!log_path.empty()) { 369 if (!log_path.empty()) {
370 base::FilePath saved_log_file_path = 370 base::FilePath saved_log_file_path =
371 ConstructSavedDebugLogPath(log_path, index); 371 ConstructSavedDebugLogPath(log_path, index);
372 if (file_util::Move(log_path, saved_log_file_path)) { 372 if (base::Move(log_path, saved_log_file_path)) {
373 log_file << " " << log_id << "=" << saved_log_file_path.value(); 373 log_file << " " << log_id << "=" << saved_log_file_path.value();
374 } 374 }
375 } 375 }
376 } 376 }
377 377
378 // Rename the chrome and v8 debug log files if existing, and save the file 378 // Rename the chrome and v8 debug log files if existing, and save the file
379 // paths in the log_file provided. 379 // paths in the log_file provided.
380 void SaveDebugLogs(std::ofstream& log_file) { 380 void SaveDebugLogs(std::ofstream& log_file) {
381 static int url_count = 1; 381 static int url_count = 1;
382 SaveDebugLog(g_chrome_log_path, L"chrome_log", log_file, url_count); 382 SaveDebugLog(g_chrome_log_path, L"chrome_log", log_file, url_count);
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 CommandLine v8_command_line( 588 CommandLine v8_command_line(
589 parsed_command_line.GetSwitchValuePath(switches::kJavaScriptFlags)); 589 parsed_command_line.GetSwitchValuePath(switches::kJavaScriptFlags));
590 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) { 590 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) {
591 g_v8_log_path = base::MakeAbsoluteFilePath( 591 g_v8_log_path = base::MakeAbsoluteFilePath(
592 v8_command_line.GetSwitchValuePath(kV8LogFileSwitch)); 592 v8_command_line.GetSwitchValuePath(kV8LogFileSwitch));
593 } 593 }
594 } 594 }
595 } 595 }
596 } 596 }
597 } 597 }
OLDNEW
« no previous file with comments | « chrome_frame/test/dll_redirector_loading_test.cc ('k') | cloud_print/common/win/install_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698