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 <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 21 matching lines...) Expand all Loading... |
32 #include "chrome/common/chrome_paths.h" | 32 #include "chrome/common/chrome_paths.h" |
33 #include "chrome/common/chrome_switches.h" | 33 #include "chrome/common/chrome_switches.h" |
34 #include "chrome/test/webdriver/commands/alert_commands.h" | 34 #include "chrome/test/webdriver/commands/alert_commands.h" |
35 #include "chrome/test/webdriver/commands/appcache_status_command.h" | 35 #include "chrome/test/webdriver/commands/appcache_status_command.h" |
36 #include "chrome/test/webdriver/commands/browser_connection_commands.h" | 36 #include "chrome/test/webdriver/commands/browser_connection_commands.h" |
37 #include "chrome/test/webdriver/commands/chrome_commands.h" | 37 #include "chrome/test/webdriver/commands/chrome_commands.h" |
38 #include "chrome/test/webdriver/commands/cookie_commands.h" | 38 #include "chrome/test/webdriver/commands/cookie_commands.h" |
39 #include "chrome/test/webdriver/commands/create_session.h" | 39 #include "chrome/test/webdriver/commands/create_session.h" |
40 #include "chrome/test/webdriver/commands/execute_async_script_command.h" | 40 #include "chrome/test/webdriver/commands/execute_async_script_command.h" |
41 #include "chrome/test/webdriver/commands/execute_command.h" | 41 #include "chrome/test/webdriver/commands/execute_command.h" |
| 42 #include "chrome/test/webdriver/commands/file_upload_command.h" |
42 #include "chrome/test/webdriver/commands/find_element_commands.h" | 43 #include "chrome/test/webdriver/commands/find_element_commands.h" |
43 #include "chrome/test/webdriver/commands/html5_storage_commands.h" | 44 #include "chrome/test/webdriver/commands/html5_storage_commands.h" |
44 #include "chrome/test/webdriver/commands/keys_command.h" | 45 #include "chrome/test/webdriver/commands/keys_command.h" |
45 #include "chrome/test/webdriver/commands/log_command.h" | 46 #include "chrome/test/webdriver/commands/log_command.h" |
46 #include "chrome/test/webdriver/commands/navigate_commands.h" | 47 #include "chrome/test/webdriver/commands/navigate_commands.h" |
47 #include "chrome/test/webdriver/commands/mouse_commands.h" | 48 #include "chrome/test/webdriver/commands/mouse_commands.h" |
48 #include "chrome/test/webdriver/commands/screenshot_command.h" | 49 #include "chrome/test/webdriver/commands/screenshot_command.h" |
49 #include "chrome/test/webdriver/commands/session_with_id.h" | 50 #include "chrome/test/webdriver/commands/session_with_id.h" |
50 #include "chrome/test/webdriver/commands/set_timeout_commands.h" | 51 #include "chrome/test/webdriver/commands/set_timeout_commands.h" |
51 #include "chrome/test/webdriver/commands/source_command.h" | 52 #include "chrome/test/webdriver/commands/source_command.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 dispatcher->Add<WindowCommand>( "/session/*/window"); | 142 dispatcher->Add<WindowCommand>( "/session/*/window"); |
142 dispatcher->Add<WindowHandleCommand>( "/session/*/window_handle"); | 143 dispatcher->Add<WindowHandleCommand>( "/session/*/window_handle"); |
143 dispatcher->Add<WindowHandlesCommand>("/session/*/window_handles"); | 144 dispatcher->Add<WindowHandlesCommand>("/session/*/window_handles"); |
144 dispatcher->Add<WindowSizeCommand>( "/session/*/window/*/size"); | 145 dispatcher->Add<WindowSizeCommand>( "/session/*/window/*/size"); |
145 dispatcher->Add<WindowPositionCommand>( | 146 dispatcher->Add<WindowPositionCommand>( |
146 "/session/*/window/*/position"); | 147 "/session/*/window/*/position"); |
147 dispatcher->Add<SetAsyncScriptTimeoutCommand>( | 148 dispatcher->Add<SetAsyncScriptTimeoutCommand>( |
148 "/session/*/timeouts/async_script"); | 149 "/session/*/timeouts/async_script"); |
149 dispatcher->Add<ImplicitWaitCommand>( "/session/*/timeouts/implicit_wait"); | 150 dispatcher->Add<ImplicitWaitCommand>( "/session/*/timeouts/implicit_wait"); |
150 dispatcher->Add<LogCommand>( "/session/*/log"); | 151 dispatcher->Add<LogCommand>( "/session/*/log"); |
| 152 dispatcher->Add<FileUploadCommand>( "/session/*/file"); |
151 | 153 |
152 // Cookie functions. | 154 // Cookie functions. |
153 dispatcher->Add<CookieCommand>( "/session/*/cookie"); | 155 dispatcher->Add<CookieCommand>( "/session/*/cookie"); |
154 dispatcher->Add<NamedCookieCommand>("/session/*/cookie/*"); | 156 dispatcher->Add<NamedCookieCommand>("/session/*/cookie/*"); |
155 | 157 |
156 dispatcher->Add<BrowserConnectionCommand>("/session/*/browser_connection"); | 158 dispatcher->Add<BrowserConnectionCommand>("/session/*/browser_connection"); |
157 dispatcher->Add<AppCacheStatusCommand>("/session/*/application_cache/status"); | 159 dispatcher->Add<AppCacheStatusCommand>("/session/*/application_cache/status"); |
158 | 160 |
159 // Chrome-specific commands. | 161 // Chrome-specific commands. |
160 dispatcher->Add<ExtensionsCommand>("/session/*/chrome/extensions"); | 162 dispatcher->Add<ExtensionsCommand>("/session/*/chrome/extensions"); |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 311 |
310 return (EXIT_SUCCESS); | 312 return (EXIT_SUCCESS); |
311 } | 313 } |
312 | 314 |
313 } // namespace webdriver | 315 } // namespace webdriver |
314 | 316 |
315 int main(int argc, char *argv[]) { | 317 int main(int argc, char *argv[]) { |
316 CommandLine::Init(argc, argv); | 318 CommandLine::Init(argc, argv); |
317 webdriver::RunChromeDriver(); | 319 webdriver::RunChromeDriver(); |
318 } | 320 } |
OLD | NEW |