OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 test which runs under UI test framework. The | 5 // This file provides reliablity test which runs under UI test framework. The |
6 // test is intended to run within QEMU environment. | 6 // test is intended to run within QEMU environment. |
7 // | 7 // |
8 // Usage 1: reliability_test | 8 // Usage 1: reliability_test |
9 // Upon invocation, it visits a hard coded list of sample URLs. This is mainly | 9 // Upon invocation, it visits a hard coded list of sample URLs. This is mainly |
10 // used by buildbot, to verify reliability_test itself runs ok. | 10 // used by buildbot, to verify reliability_test itself runs ok. |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 // Create a test log. | 157 // Create a test log. |
158 g_test_log_path = FilePath(FILE_PATH_LITERAL("test_log.log")); | 158 g_test_log_path = FilePath(FILE_PATH_LITERAL("test_log.log")); |
159 test_log.open(g_test_log_path.value().c_str()); | 159 test_log.open(g_test_log_path.value().c_str()); |
160 | 160 |
161 // Get the version of Chrome we're running. | 161 // Get the version of Chrome we're running. |
162 std::string last_change; | 162 std::string last_change; |
163 #if defined(OS_WIN) | 163 #if defined(OS_WIN) |
164 // Check file version info for chrome dll. | 164 // Check file version info for chrome dll. |
165 scoped_ptr<FileVersionInfo> file_info; | 165 scoped_ptr<FileVersionInfo> file_info; |
166 file_info.reset(FileVersionInfo::CreateFileVersionInfo(kChromeDll)); | 166 file_info.reset( |
| 167 FileVersionInfo::CreateFileVersionInfo(FilePath(kChromeDll))); |
167 last_change = WideToASCII(file_info->last_change()); | 168 last_change = WideToASCII(file_info->last_change()); |
168 #elif defined(OS_LINUX) || defined(OS_MACOSX) | 169 #elif defined(OS_LINUX) || defined(OS_MACOSX) |
169 // TODO(fmeawad): On Mac, the version retrieved here belongs to the test | 170 // TODO(fmeawad): On Mac, the version retrieved here belongs to the test |
170 // module and not the chrome binary, need to be changed to chrome binary | 171 // module and not the chrome binary, need to be changed to chrome binary |
171 // instead. | 172 // instead. |
172 chrome::VersionInfo version_info; | 173 chrome::VersionInfo version_info; |
173 last_change = version_info.LastChange(); | 174 last_change = version_info.LastChange(); |
174 #endif // !defined(OS_WIN) | 175 #endif // !defined(OS_WIN) |
175 test_log << "Last Change: "; | 176 test_log << "Last Change: "; |
176 test_log << last_change << std::endl; | 177 test_log << last_change << std::endl; |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 parsed_command_line.GetSwitchValuePath(switches::kJavaScriptFlags)); | 716 parsed_command_line.GetSwitchValuePath(switches::kJavaScriptFlags)); |
716 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) { | 717 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) { |
717 g_v8_log_path = v8_command_line.GetSwitchValuePath(kV8LogFileSwitch); | 718 g_v8_log_path = v8_command_line.GetSwitchValuePath(kV8LogFileSwitch); |
718 if (!file_util::AbsolutePath(&g_v8_log_path)) | 719 if (!file_util::AbsolutePath(&g_v8_log_path)) |
719 g_v8_log_path = FilePath(); | 720 g_v8_log_path = FilePath(); |
720 } | 721 } |
721 } | 722 } |
722 } | 723 } |
723 } | 724 } |
724 } | 725 } |
OLD | NEW |