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 17 matching lines...) Expand all Loading... |
28 // --memoryusage: prints out memory usage when visiting each page. | 28 // --memoryusage: prints out memory usage when visiting each page. |
29 // --endurl=url: visits the specified url in the end. | 29 // --endurl=url: visits the specified url in the end. |
30 // --logfile=filepath: saves the visit log to the specified path. | 30 // --logfile=filepath: saves the visit log to the specified path. |
31 // --timeout=millisecond: time out as specified in millisecond during each | 31 // --timeout=millisecond: time out as specified in millisecond during each |
32 // page load. | 32 // page load. |
33 // --nopagedown: won't simulate page down key presses after page load. | 33 // --nopagedown: won't simulate page down key presses after page load. |
34 // --noclearprofile: do not clear profile dir before firing up each time. | 34 // --noclearprofile: do not clear profile dir before firing up each time. |
35 // --savedebuglog: save Chrome, V8, and test debug log for each page loaded. | 35 // --savedebuglog: save Chrome, V8, and test debug log for each page loaded. |
36 | 36 |
37 #include <fstream> | 37 #include <fstream> |
38 #include <iostream> | |
39 | 38 |
40 #include "base/command_line.h" | 39 #include "base/command_line.h" |
41 #include "base/file_path.h" | 40 #include "base/file_path.h" |
42 #include "base/file_util.h" | 41 #include "base/file_util.h" |
43 #include "base/file_version_info.h" | 42 #include "base/file_version_info.h" |
44 #include "base/keyboard_codes.h" | 43 #include "base/keyboard_codes.h" |
45 #include "base/i18n/time_formatting.h" | 44 #include "base/i18n/time_formatting.h" |
46 #include "base/path_service.h" | 45 #include "base/path_service.h" |
47 #include "base/string_util.h" | 46 #include "base/string_util.h" |
48 #include "base/test/test_file_util.h" | 47 #include "base/test/test_file_util.h" |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 parsed_command_line.GetSwitchValuePath(switches::kJavaScriptFlags)); | 709 parsed_command_line.GetSwitchValuePath(switches::kJavaScriptFlags)); |
711 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) { | 710 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) { |
712 g_v8_log_path = v8_command_line.GetSwitchValuePath(kV8LogFileSwitch); | 711 g_v8_log_path = v8_command_line.GetSwitchValuePath(kV8LogFileSwitch); |
713 if (!file_util::AbsolutePath(&g_v8_log_path)) | 712 if (!file_util::AbsolutePath(&g_v8_log_path)) |
714 g_v8_log_path = FilePath(); | 713 g_v8_log_path = FilePath(); |
715 } | 714 } |
716 } | 715 } |
717 } | 716 } |
718 } | 717 } |
719 } | 718 } |
OLD | NEW |