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

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

Issue 6507015: Implement the target locator commands for ChromeDriver. (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/command.cc
diff --git a/chrome/test/webdriver/commands/command.cc b/chrome/test/webdriver/commands/command.cc
index 68a0cdbe09e132d5789bea2a49743816326d80c1..c1ccb5c203c64ec9aa3b11ac32ffb44c6d059447 100644
--- a/chrome/test/webdriver/commands/command.cc
+++ b/chrome/test/webdriver/commands/command.cc
@@ -40,6 +40,13 @@ bool Command::Init(Response* const response) {
return true;
}
+bool Command::IsNullParameter(const std::string& key) const {
+ Value* value;
+ return parameters_.get() &&
+ parameters_->Get(key, &value) &&
+ value->IsType(Value::TYPE_NULL);
+}
+
bool Command::GetStringParameter(const std::string& key,
string16* out) const {
return parameters_.get() != NULL && parameters_->GetString(key, out);
@@ -71,4 +78,3 @@ bool Command::GetListParameter(const std::string& key,
}
} // namespace webdriver
-

Powered by Google App Engine
This is Rietveld 408576698