OLD | NEW |
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 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 #include "chrome/test/automation/tab_proxy.h" | 59 #include "chrome/test/automation/tab_proxy.h" |
60 #include "chrome/test/automation/window_proxy.h" | 60 #include "chrome/test/automation/window_proxy.h" |
61 #include "chrome/test/ui/ui_test.h" | 61 #include "chrome/test/ui/ui_test.h" |
62 #include "chrome/test/perf/mem_usage.h" | 62 #include "chrome/test/perf/mem_usage.h" |
63 #include "chrome/test/reliability/page_load_test.h" | 63 #include "chrome/test/reliability/page_load_test.h" |
64 #include "net/base/net_util.h" | 64 #include "net/base/net_util.h" |
65 | 65 |
66 namespace { | 66 namespace { |
67 | 67 |
68 // See comments at the beginning of the file for the definition of switches. | 68 // See comments at the beginning of the file for the definition of switches. |
69 const wchar_t kSiteSwitch[] = L"site"; | 69 const char kSiteSwitch[] = "site"; |
70 const wchar_t kStartPageSwitch[] = L"startpage"; | 70 const char kStartPageSwitch[] = "startpage"; |
71 const wchar_t kEndPageSwitch[] = L"endpage"; | 71 const char kEndPageSwitch[] = "endpage"; |
72 const wchar_t kListSwitch[] = L"list"; | 72 const char kListSwitch[] = "list"; |
73 const wchar_t kStartIndexSwitch[] = L"startline"; | 73 const char kStartIndexSwitch[] = "startline"; |
74 const wchar_t kEndIndexSwitch[] = L"endline"; | 74 const char kEndIndexSwitch[] = "endline"; |
75 const wchar_t kIterationSwitch[] = L"iterations"; | 75 const char kIterationSwitch[] = "iterations"; |
76 const wchar_t kContinuousLoadSwitch[] = L"continuousload"; | 76 const char kContinuousLoadSwitch[] = "continuousload"; |
77 const wchar_t kMemoryUsageSwitch[] = L"memoryusage"; | 77 const char kMemoryUsageSwitch[] = "memoryusage"; |
78 const wchar_t kEndURLSwitch[] = L"endurl"; | 78 const char kEndURLSwitch[] = "endurl"; |
79 const wchar_t kLogFileSwitch[] = L"logfile"; | 79 const char kLogFileSwitch[] = "logfile"; |
80 const wchar_t kTimeoutSwitch[] = L"timeout"; | 80 const char kTimeoutSwitch[] = "timeout"; |
81 const wchar_t kNoPageDownSwitch[] = L"nopagedown"; | 81 const char kNoPageDownSwitch[] = "nopagedown"; |
82 const wchar_t kSaveDebugLogSwitch[] = L"savedebuglog"; | 82 const char kSaveDebugLogSwitch[] = "savedebuglog"; |
83 | 83 |
84 const char kDefaultServerUrl[] = "http://urllist.com"; | 84 const char kDefaultServerUrl[] = "http://urllist.com"; |
85 std::string g_server_url; | 85 std::string g_server_url; |
86 const char kTestPage1[] = "page1.html"; | 86 const char kTestPage1[] = "page1.html"; |
87 const char kTestPage2[] = "page2.html"; | 87 const char kTestPage2[] = "page2.html"; |
88 const char crash_url[] = "about:crash"; | 88 const char crash_url[] = "about:crash"; |
89 | 89 |
90 // These are copied from v8 definitions as we cannot include them. | 90 // These are copied from v8 definitions as we cannot include them. |
91 const wchar_t kV8LogFileSwitch[] = L"logfile"; | 91 const char kV8LogFileSwitch[] = "logfile"; |
92 const char kV8LogFileDefaultName[] = "v8.log"; | 92 const char kV8LogFileDefaultName[] = "v8.log"; |
93 | 93 |
94 // String name of local chrome dll for looking up file information. | 94 // String name of local chrome dll for looking up file information. |
95 const wchar_t kChromeDll[] = L"chrome.dll"; | 95 const wchar_t kChromeDll[] = L"chrome.dll"; |
96 | 96 |
97 bool g_append_page_id = false; | 97 bool g_append_page_id = false; |
98 int32 g_start_page; | 98 int32 g_start_page; |
99 int32 g_end_page; | 99 int32 g_end_page; |
100 FilePath g_url_file_path; | 100 FilePath g_url_file_path; |
101 int32 g_start_index = 1; | 101 int32 g_start_index = 1; |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 g_v8_log_path = FilePath::FromWStringHack( | 724 g_v8_log_path = FilePath::FromWStringHack( |
725 v8_command_line.GetSwitchValue(kV8LogFileSwitch)); | 725 v8_command_line.GetSwitchValue(kV8LogFileSwitch)); |
726 if (!file_util::AbsolutePath(&g_v8_log_path)) { | 726 if (!file_util::AbsolutePath(&g_v8_log_path)) { |
727 g_v8_log_path = FilePath(); | 727 g_v8_log_path = FilePath(); |
728 } | 728 } |
729 } | 729 } |
730 } | 730 } |
731 } | 731 } |
732 } | 732 } |
733 } | 733 } |
OLD | NEW |