| 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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 LOG(ERROR) << "Unable to launch websocket server."; | 943 LOG(ERROR) << "Unable to launch websocket server."; |
| 944 return false; | 944 return false; |
| 945 } | 945 } |
| 946 #if defined(OS_POSIX) | 946 #if defined(OS_POSIX) |
| 947 process_group_id_ = process_handle; | 947 process_group_id_ = process_handle; |
| 948 #endif | 948 #endif |
| 949 int exit_code; | 949 int exit_code; |
| 950 bool wait_success = base::WaitForExitCodeWithTimeout( | 950 bool wait_success = base::WaitForExitCodeWithTimeout( |
| 951 process_handle, | 951 process_handle, |
| 952 &exit_code, | 952 &exit_code, |
| 953 TestTimeouts::action_max_timeout_ms()); | 953 TestTimeouts::action_max_timeout()); |
| 954 base::CloseProcessHandle(process_handle); | 954 base::CloseProcessHandle(process_handle); |
| 955 | 955 |
| 956 if (!wait_success || exit_code != 0) { | 956 if (!wait_success || exit_code != 0) { |
| 957 LOG(ERROR) << "Failed to run new-run-webkit-websocketserver: " | 957 LOG(ERROR) << "Failed to run new-run-webkit-websocketserver: " |
| 958 << "wait_success = " << wait_success << ", " | 958 << "wait_success = " << wait_success << ", " |
| 959 << "exit_code = " << exit_code; | 959 << "exit_code = " << exit_code; |
| 960 return false; | 960 return false; |
| 961 } | 961 } |
| 962 | 962 |
| 963 started_ = true; | 963 started_ = true; |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1290 int state, | 1290 int state, |
| 1291 const base::Closure& followup) { | 1291 const base::Closure& followup) { |
| 1292 if (!followup.is_null()) | 1292 if (!followup.is_null()) |
| 1293 ui_controls::SendMouseEventsNotifyWhenDone(button, state, followup); | 1293 ui_controls::SendMouseEventsNotifyWhenDone(button, state, followup); |
| 1294 else | 1294 else |
| 1295 ui_controls::SendMouseEvents(button, state); | 1295 ui_controls::SendMouseEvents(button, state); |
| 1296 } | 1296 } |
| 1297 | 1297 |
| 1298 } // namespace internal | 1298 } // namespace internal |
| 1299 } // namespace ui_test_utils | 1299 } // namespace ui_test_utils |
| OLD | NEW |