| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |