Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: chrome/test/webdriver/webdriver_server.cc

Issue 9515005: [chromedriver] Add command for uploading a file to a remote ChromeDriver server, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/test/webdriver/webdriver_capabilities_parser.cc ('k') | chrome/test/webdriver/webdriver_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698