diff options
Diffstat (limited to 'chrome/test/reliability/page_load_test.cc')
-rw-r--r-- | chrome/test/reliability/page_load_test.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/test/reliability/page_load_test.cc b/chrome/test/reliability/page_load_test.cc index b451006..2ee9470 100644 --- a/chrome/test/reliability/page_load_test.cc +++ b/chrome/test/reliability/page_load_test.cc @@ -101,6 +101,7 @@ uint32 timeout_ms = INFINITE; bool save_debug_log = false; std::wstring chrome_log_path; std::wstring v8_log_path; +bool stand_alone = false; class PageLoadTest : public UITest { public: @@ -266,7 +267,10 @@ class PageLoadTest : public UITest { } } else { // Don't run if single process mode. - if (in_process_renderer()) + // Also don't run if running as a standalone program which is for + // distributed testing, to avoid mistakenly hitting web sites with many + // instances. + if (in_process_renderer() || stand_alone) return; // For usage 1 NavigationMetrics metrics; @@ -554,6 +558,8 @@ TEST_F(PageLoadTest, Reliability) { } void SetPageRange(const CommandLine& parsed_command_line) { + // If calling into this function, we are running as a standalone program. + stand_alone = true; if (parsed_command_line.HasSwitch(kStartPageSwitch)) { ASSERT_TRUE(parsed_command_line.HasSwitch(kEndPageSwitch)); start_page = |