| OLD | NEW |
| 1 // Copyright (c) 2006-2008 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. |
| 11 // | 11 // |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 // Page down twice. | 175 // Page down twice. |
| 176 scoped_ptr<BrowserProxy> browser(automation()->GetBrowserWindow(0)); | 176 scoped_ptr<BrowserProxy> browser(automation()->GetBrowserWindow(0)); |
| 177 if (browser.get()) { | 177 if (browser.get()) { |
| 178 scoped_ptr<WindowProxy> window(browser->GetWindow()); | 178 scoped_ptr<WindowProxy> window(browser->GetWindow()); |
| 179 if (window.get()) { | 179 if (window.get()) { |
| 180 bool activation_timeout; | 180 bool activation_timeout; |
| 181 browser->BringToFrontWithTimeout(action_max_timeout_ms(), | 181 browser->BringToFrontWithTimeout(action_max_timeout_ms(), |
| 182 &activation_timeout); | 182 &activation_timeout); |
| 183 if (!activation_timeout) { | 183 if (!activation_timeout) { |
| 184 window->SimulateOSKeyPress(VK_NEXT, 0); | 184 window->SimulateOSKeyPress(VK_NEXT, 0); |
| 185 Sleep(sleep_timeout_ms()); | 185 PlatformThread::Sleep(sleep_timeout_ms()); |
| 186 window->SimulateOSKeyPress(VK_NEXT, 0); | 186 window->SimulateOSKeyPress(VK_NEXT, 0); |
| 187 Sleep(sleep_timeout_ms()); | 187 PlatformThread::Sleep(sleep_timeout_ms()); |
| 188 } | 188 } |
| 189 } | 189 } |
| 190 } | 190 } |
| 191 } | 191 } |
| 192 } | 192 } |
| 193 } | 193 } |
| 194 | 194 |
| 195 // Log navigate complete time. | 195 // Log navigate complete time. |
| 196 time_now = base::Time::Now(); | 196 time_now = base::Time::Now(); |
| 197 test_log << "navigate_complete_seconds="; | 197 test_log << "navigate_complete_seconds="; |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) { | 685 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) { |
| 686 v8_log_path = v8_command_line.GetSwitchValue(kV8LogFileSwitch); | 686 v8_log_path = v8_command_line.GetSwitchValue(kV8LogFileSwitch); |
| 687 if (!file_util::AbsolutePath(&v8_log_path)) { | 687 if (!file_util::AbsolutePath(&v8_log_path)) { |
| 688 v8_log_path.clear(); | 688 v8_log_path.clear(); |
| 689 } | 689 } |
| 690 } | 690 } |
| 691 } | 691 } |
| 692 } | 692 } |
| 693 } | 693 } |
| 694 } | 694 } |
| OLD | NEW |