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

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

Issue 5968008: Update file version info/memory details/process utils to use string16.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 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
« no previous file with comments | « chrome_frame/crash_reporting/minidump_test.cc ('k') | chrome_frame/test/util_unittests.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 (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 NavigationMetrics metrics = {NAVIGATION_ERROR}; 151 NavigationMetrics metrics = {NAVIGATION_ERROR};
152 std::ofstream test_log; 152 std::ofstream test_log;
153 153
154 // Create a test log. 154 // Create a test log.
155 g_test_log_path = FilePath(FILE_PATH_LITERAL("test_log.log")); 155 g_test_log_path = FilePath(FILE_PATH_LITERAL("test_log.log"));
156 test_log.open(g_test_log_path.value().c_str()); 156 test_log.open(g_test_log_path.value().c_str());
157 157
158 // Check file version info for chrome dll. 158 // Check file version info for chrome dll.
159 scoped_ptr<FileVersionInfo> file_info; 159 scoped_ptr<FileVersionInfo> file_info;
160 #if defined(OS_WIN) 160 #if defined(OS_WIN)
161 file_info.reset(FileVersionInfo::CreateFileVersionInfo(kChromeDll)); 161 file_info.reset(
162 FileVersionInfo::CreateFileVersionInfo(FilePath(kChromeDll)));
162 #elif defined(OS_LINUX) || defined(OS_MACOSX) 163 #elif defined(OS_LINUX) || defined(OS_MACOSX)
163 // TODO(fmeawad): the version retrieved here belongs to the test module and 164 // TODO(fmeawad): the version retrieved here belongs to the test module and
164 // not the chrome binary, need to be changed to chrome binary instead. 165 // not the chrome binary, need to be changed to chrome binary instead.
165 file_info.reset(FileVersionInfo::CreateFileVersionInfoForCurrentModule()); 166 file_info.reset(FileVersionInfo::CreateFileVersionInfoForCurrentModule());
166 #endif // !defined(OS_WIN) 167 #endif // !defined(OS_WIN)
167 std::wstring last_change = file_info->last_change(); 168 std::wstring last_change = file_info->last_change();
168 test_log << "Last Change: "; 169 test_log << "Last Change: ";
169 test_log << last_change << std::endl; 170 test_log << last_change << std::endl;
170 171
171 172
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 parsed_command_line.GetSwitchValuePath(switches::kJavaScriptFlags)); 579 parsed_command_line.GetSwitchValuePath(switches::kJavaScriptFlags));
579 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) { 580 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) {
580 g_v8_log_path = v8_command_line.GetSwitchValuePath(kV8LogFileSwitch); 581 g_v8_log_path = v8_command_line.GetSwitchValuePath(kV8LogFileSwitch);
581 if (!file_util::AbsolutePath(&g_v8_log_path)) 582 if (!file_util::AbsolutePath(&g_v8_log_path))
582 g_v8_log_path = FilePath(); 583 g_v8_log_path = FilePath();
583 } 584 }
584 } 585 }
585 } 586 }
586 } 587 }
587 } 588 }
OLDNEW
« no previous file with comments | « chrome_frame/crash_reporting/minidump_test.cc ('k') | chrome_frame/test/util_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698