OLD | NEW |
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 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 g_chrome_log_path = logging::GetLogFileName(); | 212 g_chrome_log_path = logging::GetLogFileName(); |
213 // We won't get v8 log unless --no-sandbox is specified. | 213 // We won't get v8 log unless --no-sandbox is specified. |
214 if (parsed_command_line.HasSwitch(switches::kNoSandbox)) { | 214 if (parsed_command_line.HasSwitch(switches::kNoSandbox)) { |
215 PathService::Get(base::DIR_CURRENT, &g_v8_log_path); | 215 PathService::Get(base::DIR_CURRENT, &g_v8_log_path); |
216 g_v8_log_path = g_v8_log_path.AppendASCII(kV8LogFileDefaultName); | 216 g_v8_log_path = g_v8_log_path.AppendASCII(kV8LogFileDefaultName); |
217 // The command line switch may override the default v8 log path. | 217 // The command line switch may override the default v8 log path. |
218 if (parsed_command_line.HasSwitch(switches::kJavaScriptFlags)) { | 218 if (parsed_command_line.HasSwitch(switches::kJavaScriptFlags)) { |
219 CommandLine v8_command_line( | 219 CommandLine v8_command_line( |
220 parsed_command_line.GetSwitchValuePath(switches::kJavaScriptFlags)); | 220 parsed_command_line.GetSwitchValuePath(switches::kJavaScriptFlags)); |
221 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) { | 221 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) { |
222 g_v8_log_path = v8_command_line.GetSwitchValuePath(kV8LogFileSwitch); | 222 g_v8_log_path = |
223 if (!file_util::AbsolutePath(&g_v8_log_path)) | 223 v8_command_line.GetSwitchValuePath(kV8LogFileSwitch).AsAbsolute(); |
224 g_v8_log_path = base::FilePath(); | |
225 } | 224 } |
226 } | 225 } |
227 } | 226 } |
228 } | 227 } |
229 | 228 |
230 if (parsed_command_line.HasSwitch(kStressOptSwitch)) { | 229 if (parsed_command_line.HasSwitch(kStressOptSwitch)) { |
231 g_stress_opt = true; | 230 g_stress_opt = true; |
232 } | 231 } |
233 if (parsed_command_line.HasSwitch(kStressDeoptSwitch)) { | 232 if (parsed_command_line.HasSwitch(kStressDeoptSwitch)) { |
234 g_stress_deopt = true; | 233 g_stress_deopt = true; |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 if (!g_end_url.empty()) { | 810 if (!g_end_url.empty()) { |
812 NavigateToURLLogResult( | 811 NavigateToURLLogResult( |
813 g_end_url, log_file, NULL, g_continuous_load, false); | 812 g_end_url, log_file, NULL, g_continuous_load, false); |
814 } | 813 } |
815 | 814 |
816 log_file.close(); | 815 log_file.close(); |
817 } | 816 } |
818 | 817 |
819 } // namespace | 818 } // namespace |
820 | 819 |
OLD | NEW |