| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/test/webdriver/commands/command.h" | 5 #include "chrome/test/webdriver/commands/command.h" |
| 6 | 6 |
| 7 namespace webdriver { | 7 namespace webdriver { |
| 8 | 8 |
| 9 // Error message taken from: | 9 // Error message taken from: |
| 10 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes | 10 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 bool Command::GetBooleanParameter(const std::string& key, | 35 bool Command::GetBooleanParameter(const std::string& key, |
| 36 bool* out) const { | 36 bool* out) const { |
| 37 return parameters_.get() != NULL && parameters_->GetBoolean(key, out); | 37 return parameters_.get() != NULL && parameters_->GetBoolean(key, out); |
| 38 } | 38 } |
| 39 | 39 |
| 40 bool Command::GetIntegerParameter(const std::string& key, | 40 bool Command::GetIntegerParameter(const std::string& key, |
| 41 int* out) const { | 41 int* out) const { |
| 42 return parameters_.get() != NULL && parameters_->GetInteger(key, out); | 42 return parameters_.get() != NULL && parameters_->GetInteger(key, out); |
| 43 } | 43 } |
| 44 | 44 |
| 45 bool Command::GetListParameter(const std::string& key, |
| 46 ListValue** out) const { |
| 47 return parameters_.get() != NULL && parameters_->GetList(key, out); |
| 48 } |
| 49 |
| 45 } // namespace webdriver | 50 } // namespace webdriver |
| 46 | 51 |
| OLD | NEW |