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

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

Issue 6462015: Cleanup more test code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wtf windows is this me 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
« no previous file with comments | « chrome/test/webdriver/commands/find_element_commands.h ('k') | chrome/test/webdriver/keymap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/commands/find_element_commands.cc
diff --git a/chrome/test/webdriver/commands/find_element_commands.cc b/chrome/test/webdriver/commands/find_element_commands.cc
index 94d82c8b9e3d241bb3bef1e1fcc5f987c1c82c98..16f245400d60b61efb047320109bdcb9b3ca0272 100644
--- a/chrome/test/webdriver/commands/find_element_commands.cc
+++ b/chrome/test/webdriver/commands/find_element_commands.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -17,6 +17,15 @@
namespace webdriver {
+FindElementCommand::FindElementCommand(
+ const std::vector<std::string>& path_segments,
+ const DictionaryValue* const parameters,
+ const bool find_one_element)
+ : WebDriverCommand(path_segments, parameters),
+ find_one_element_(find_one_element) {}
+
+FindElementCommand::~FindElementCommand() {}
+
bool FindElementCommand::Init(Response* const response) {
if (!WebDriverCommand::Init(response)) {
SET_WEBDRIVER_ERROR(response, "Failure on Init for find element",
@@ -49,6 +58,10 @@ bool FindElementCommand::Init(Response* const response) {
return true;
}
+bool FindElementCommand::DoesPost() {
+ return true;
+}
+
void FindElementCommand::ExecutePost(Response* const response) {
scoped_ptr<ListValue> args(new ListValue());
DictionaryValue* locator = new DictionaryValue();
@@ -108,5 +121,9 @@ void FindElementCommand::ExecutePost(Response* const response) {
response->set_status(error);
}
+bool FindElementCommand::RequiresValidTab() {
+ return false;
+}
+
} // namespace webdriver
« no previous file with comments | « chrome/test/webdriver/commands/find_element_commands.h ('k') | chrome/test/webdriver/keymap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698