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 30 matching lines...) Expand all Loading... |
41 #include "chrome/test/webdriver/commands/screenshot_command.h" | 41 #include "chrome/test/webdriver/commands/screenshot_command.h" |
42 #include "chrome/test/webdriver/commands/session_with_id.h" | 42 #include "chrome/test/webdriver/commands/session_with_id.h" |
43 #include "chrome/test/webdriver/commands/set_timeout_commands.h" | 43 #include "chrome/test/webdriver/commands/set_timeout_commands.h" |
44 #include "chrome/test/webdriver/commands/source_command.h" | 44 #include "chrome/test/webdriver/commands/source_command.h" |
45 #include "chrome/test/webdriver/commands/target_locator_commands.h" | 45 #include "chrome/test/webdriver/commands/target_locator_commands.h" |
46 #include "chrome/test/webdriver/commands/title_command.h" | 46 #include "chrome/test/webdriver/commands/title_command.h" |
47 #include "chrome/test/webdriver/commands/url_command.h" | 47 #include "chrome/test/webdriver/commands/url_command.h" |
48 #include "chrome/test/webdriver/commands/webelement_commands.h" | 48 #include "chrome/test/webdriver/commands/webelement_commands.h" |
49 #include "chrome/test/webdriver/dispatch.h" | 49 #include "chrome/test/webdriver/dispatch.h" |
50 #include "chrome/test/webdriver/session_manager.h" | 50 #include "chrome/test/webdriver/session_manager.h" |
51 #include "chrome/test/webdriver/utility_functions.h" | |
52 #include "chrome/test/webdriver/webdriver_logging.h" | 51 #include "chrome/test/webdriver/webdriver_logging.h" |
| 52 #include "chrome/test/webdriver/webdriver_util.h" |
53 #include "third_party/mongoose/mongoose.h" | 53 #include "third_party/mongoose/mongoose.h" |
54 | 54 |
55 #if defined(OS_WIN) | 55 #if defined(OS_WIN) |
56 #include <time.h> | 56 #include <time.h> |
57 #elif defined(OS_POSIX) | 57 #elif defined(OS_POSIX) |
58 #include <errno.h> | 58 #include <errno.h> |
59 #include <sys/time.h> | 59 #include <sys/time.h> |
60 #include <sys/types.h> | 60 #include <sys/types.h> |
61 #include <sys/wait.h> | 61 #include <sys/wait.h> |
62 #endif | 62 #endif |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 240 |
241 // Run until we receive command to shutdown. | 241 // Run until we receive command to shutdown. |
242 shutdown_event.Wait(); | 242 shutdown_event.Wait(); |
243 | 243 |
244 // We should not reach here since the service should never quit. | 244 // We should not reach here since the service should never quit. |
245 // TODO(jmikhail): register a listener for SIGTERM and break the | 245 // TODO(jmikhail): register a listener for SIGTERM and break the |
246 // message loop gracefully. | 246 // message loop gracefully. |
247 mg_stop(ctx); | 247 mg_stop(ctx); |
248 return (EXIT_SUCCESS); | 248 return (EXIT_SUCCESS); |
249 } | 249 } |
OLD | NEW |