Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: chrome/test/reliability/page_load_test.cc

Issue 63113: Convert Windows Sleep to PlatformThread::Sleep... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/memory_test/memory_test.cc ('k') | chrome/test/ui/ui_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/test/memory_test/memory_test.cc ('k') | chrome/test/ui/ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698