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

Side by Side Diff: chrome/test/base/ui_test_utils.cc

Issue 10787010: Switch to TimeDelta interfaces in chrome automation test infrastructure. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase onto master. Created 8 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/test/base/ui_test_utils.h" 5 #include "chrome/test/base/ui_test_utils.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #endif 9 #endif
10 10
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 LOG(ERROR) << "Unable to launch websocket server."; 901 LOG(ERROR) << "Unable to launch websocket server.";
902 return false; 902 return false;
903 } 903 }
904 #if defined(OS_POSIX) 904 #if defined(OS_POSIX)
905 process_group_id_ = process_handle; 905 process_group_id_ = process_handle;
906 #endif 906 #endif
907 int exit_code; 907 int exit_code;
908 bool wait_success = base::WaitForExitCodeWithTimeout( 908 bool wait_success = base::WaitForExitCodeWithTimeout(
909 process_handle, 909 process_handle,
910 &exit_code, 910 &exit_code,
911 TestTimeouts::action_max_timeout_ms()); 911 TestTimeouts::action_max_timeout());
912 base::CloseProcessHandle(process_handle); 912 base::CloseProcessHandle(process_handle);
913 913
914 if (!wait_success || exit_code != 0) { 914 if (!wait_success || exit_code != 0) {
915 LOG(ERROR) << "Failed to run new-run-webkit-websocketserver: " 915 LOG(ERROR) << "Failed to run new-run-webkit-websocketserver: "
916 << "wait_success = " << wait_success << ", " 916 << "wait_success = " << wait_success << ", "
917 << "exit_code = " << exit_code; 917 << "exit_code = " << exit_code;
918 return false; 918 return false;
919 } 919 }
920 920
921 started_ = true; 921 started_ = true;
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 int state, 1248 int state,
1249 const base::Closure& followup) { 1249 const base::Closure& followup) {
1250 if (!followup.is_null()) 1250 if (!followup.is_null())
1251 ui_controls::SendMouseEventsNotifyWhenDone(button, state, followup); 1251 ui_controls::SendMouseEventsNotifyWhenDone(button, state, followup);
1252 else 1252 else
1253 ui_controls::SendMouseEvents(button, state); 1253 ui_controls::SendMouseEvents(button, state);
1254 } 1254 }
1255 1255
1256 } // namespace internal 1256 } // namespace internal
1257 } // namespace ui_test_utils 1257 } // namespace ui_test_utils
OLDNEW
« no previous file with comments | « chrome/test/automation/proxy_launcher.cc ('k') | chrome/test/mini_installer_test/installer_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698