| Index: chrome/test/webdriver/commands/speed_command.cc
|
| diff --git a/chrome/test/webdriver/commands/speed_command.cc b/chrome/test/webdriver/commands/speed_command.cc
|
| index e09602d3c8068dceed244a15c8922f2de0144ce2..95b4abdc3f8d447fd84b0173e8446a2237918582 100644
|
| --- a/chrome/test/webdriver/commands/speed_command.cc
|
| +++ b/chrome/test/webdriver/commands/speed_command.cc
|
| @@ -9,6 +9,14 @@
|
|
|
| namespace webdriver {
|
|
|
| +SpeedCommand::SpeedCommand(const std::vector<std::string>& path_segments,
|
| + const DictionaryValue* const parameters)
|
| + : WebDriverCommand(path_segments, parameters),
|
| + speed_(Session::kMedium) {
|
| +}
|
| +
|
| +SpeedCommand::~SpeedCommand() {}
|
| +
|
| bool SpeedCommand::Init(Response* const response) {
|
| std::string speed;
|
|
|
| @@ -44,6 +52,14 @@ bool SpeedCommand::Init(Response* const response) {
|
| return true;
|
| }
|
|
|
| +bool SpeedCommand::DoesGet() {
|
| + return true;
|
| +}
|
| +
|
| +bool SpeedCommand::DoesPost() {
|
| + return true;
|
| +}
|
| +
|
| void SpeedCommand::ExecuteGet(Response* const response) {
|
| switch (session_->speed()) {
|
| case Session::kSlow:
|
| @@ -82,5 +98,9 @@ void SpeedCommand::ExecutePost(Response* const response) {
|
| response->set_status(kSuccess);
|
| }
|
|
|
| +bool SpeedCommand::RequiresValidTab() {
|
| + return true;
|
| +}
|
| +
|
| } // namespace webdriver
|
|
|
|
|