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

Unified Diff: chrome/test/webdriver/commands/file_upload_command.h

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, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/webdriver/commands/file_upload_command.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/commands/file_upload_command.h
diff --git a/chrome/test/webdriver/commands/file_upload_command.h b/chrome/test/webdriver/commands/file_upload_command.h
new file mode 100644
index 0000000000000000000000000000000000000000..724f275885c53bb8daacddc0448360bcc73844f9
--- /dev/null
+++ b/chrome/test/webdriver/commands/file_upload_command.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_TEST_WEBDRIVER_COMMANDS_FILE_UPLOAD_COMMAND_H_
+#define CHROME_TEST_WEBDRIVER_COMMANDS_FILE_UPLOAD_COMMAND_H_
+
+#include <string>
+#include <vector>
+
+#include "chrome/test/webdriver/commands/webdriver_command.h"
+
+namespace base {
+class DictionaryValue;
+}
+
+namespace webdriver {
+
+class Response;
+
+class FileUploadCommand : public WebDriverCommand {
+ public:
+ FileUploadCommand(const std::vector<std::string>& path_segments,
+ base::DictionaryValue* parameters);
+ virtual ~FileUploadCommand();
+
+ virtual bool DoesPost() OVERRIDE;
+ virtual void ExecutePost(Response* const response) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(FileUploadCommand);
+};
+
+} // namespace webdriver
+
+#endif // CHROME_TEST_WEBDRIVER_COMMANDS_FILE_UPLOAD_COMMAND_H_
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/webdriver/commands/file_upload_command.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698