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

Unified Diff: chrome/test/webdriver/commands/execute_command.cc

Issue 6523032: Even more test cleanup. Some fixes to non-test code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
Index: chrome/test/webdriver/commands/execute_command.cc
diff --git a/chrome/test/webdriver/commands/execute_command.cc b/chrome/test/webdriver/commands/execute_command.cc
index 96a0983e03cef084d522d8305640b9c79a7bab90..dc68e415197387543ed34cc4173e53fd00e6f299 100644
--- a/chrome/test/webdriver/commands/execute_command.cc
+++ b/chrome/test/webdriver/commands/execute_command.cc
@@ -13,6 +13,13 @@ namespace webdriver {
const char kArgs[] = "args";
const char kScript[] = "script";
+ExecuteCommand::ExecuteCommand(const std::vector<std::string>& path_segments,
+ const DictionaryValue* const parameters)
+ : WebDriverCommand(path_segments, parameters) {}
+
+ExecuteCommand::~ExecuteCommand() {}
+
+
bool ExecuteCommand::Init(Response* const response) {
if (!WebDriverCommand::Init(response)) {
SET_WEBDRIVER_ERROR(response, "Failure on Init for execute command",
@@ -30,6 +37,10 @@ bool ExecuteCommand::Init(Response* const response) {
return true;
}
+bool ExecuteCommand::DoesPost() {
+ return true;
+}
+
void ExecuteCommand::ExecutePost(Response* const response) {
int error_code = 0;
std::string error_msg;
@@ -73,5 +84,9 @@ void ExecuteCommand::ExecutePost(Response* const response) {
response->set_status(kSuccess);
}
+bool ExecuteCommand::RequiresValidTab() {
+ return true;
+}
+
} // namspace webdriver

Powered by Google App Engine
This is Rietveld 408576698