| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <signal.h> | 5 #include <signal.h> |
| 6 #include <stdlib.h> | 6 #include <stdlib.h> |
| 7 | 7 |
| 8 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 #endif | 10 #endif |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 #include "chrome/test/webdriver/commands/screenshot_command.h" | 39 #include "chrome/test/webdriver/commands/screenshot_command.h" |
| 40 #include "chrome/test/webdriver/commands/session_with_id.h" | 40 #include "chrome/test/webdriver/commands/session_with_id.h" |
| 41 #include "chrome/test/webdriver/commands/set_timeout_commands.h" | 41 #include "chrome/test/webdriver/commands/set_timeout_commands.h" |
| 42 #include "chrome/test/webdriver/commands/source_command.h" | 42 #include "chrome/test/webdriver/commands/source_command.h" |
| 43 #include "chrome/test/webdriver/commands/target_locator_commands.h" | 43 #include "chrome/test/webdriver/commands/target_locator_commands.h" |
| 44 #include "chrome/test/webdriver/commands/title_command.h" | 44 #include "chrome/test/webdriver/commands/title_command.h" |
| 45 #include "chrome/test/webdriver/commands/url_command.h" | 45 #include "chrome/test/webdriver/commands/url_command.h" |
| 46 #include "chrome/test/webdriver/commands/webelement_commands.h" | 46 #include "chrome/test/webdriver/commands/webelement_commands.h" |
| 47 #include "chrome/test/webdriver/dispatch.h" | 47 #include "chrome/test/webdriver/dispatch.h" |
| 48 #include "chrome/test/webdriver/session_manager.h" | 48 #include "chrome/test/webdriver/session_manager.h" |
| 49 #include "chrome/test/webdriver/utility_functions.h" | |
| 50 #include "chrome/test/webdriver/webdriver_logging.h" | 49 #include "chrome/test/webdriver/webdriver_logging.h" |
| 50 #include "chrome/test/webdriver/webdriver_util.h" |
| 51 #include "third_party/mongoose/mongoose.h" | 51 #include "third_party/mongoose/mongoose.h" |
| 52 | 52 |
| 53 #if defined(OS_WIN) | 53 #if defined(OS_WIN) |
| 54 #include <time.h> | 54 #include <time.h> |
| 55 #elif defined(OS_POSIX) | 55 #elif defined(OS_POSIX) |
| 56 #include <errno.h> | 56 #include <errno.h> |
| 57 #include <sys/time.h> | 57 #include <sys/time.h> |
| 58 #include <sys/types.h> | 58 #include <sys/types.h> |
| 59 #include <sys/wait.h> | 59 #include <sys/wait.h> |
| 60 #endif | 60 #endif |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 235 |
| 236 // Run until we receive command to shutdown. | 236 // Run until we receive command to shutdown. |
| 237 shutdown_event.Wait(); | 237 shutdown_event.Wait(); |
| 238 | 238 |
| 239 // We should not reach here since the service should never quit. | 239 // We should not reach here since the service should never quit. |
| 240 // TODO(jmikhail): register a listener for SIGTERM and break the | 240 // TODO(jmikhail): register a listener for SIGTERM and break the |
| 241 // message loop gracefully. | 241 // message loop gracefully. |
| 242 mg_stop(ctx); | 242 mg_stop(ctx); |
| 243 return (EXIT_SUCCESS); | 243 return (EXIT_SUCCESS); |
| 244 } | 244 } |
| OLD | NEW |