diff options
Diffstat (limited to 'chrome/test/webdriver/commands/command.cc')
-rw-r--r-- | chrome/test/webdriver/commands/command.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/test/webdriver/commands/command.cc b/chrome/test/webdriver/commands/command.cc index d735295..e524f6e 100644 --- a/chrome/test/webdriver/commands/command.cc +++ b/chrome/test/webdriver/commands/command.cc @@ -17,6 +17,11 @@ const char* const Response::kStackTrace = "stackTrace"; const char* const Response::kFileName = "fileName"; const char* const Response::kLineNumber = "lineNumber"; +bool Command::GetStringParameter(const std::string& key, + string16* out) const { + return parameters_.get() != NULL && parameters_->GetString(key, out); +} + bool Command::GetStringASCIIParameter(const std::string& key, std::string* out) const { return parameters_.get() != NULL && parameters_->GetStringASCII(key, out); |