OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/set_timeout_commands.h" | 5 #include "chrome/test/webdriver/commands/set_timeout_commands.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/test/webdriver/commands/response.h" | 11 #include "chrome/test/webdriver/commands/response.h" |
12 #include "chrome/test/webdriver/webdriver_error.h" | 12 #include "chrome/test/webdriver/webdriver_error.h" |
13 #include "chrome/test/webdriver/webdriver_session.h" | 13 #include "chrome/test/webdriver/webdriver_session.h" |
14 | 14 |
15 namespace webdriver { | 15 namespace webdriver { |
16 | 16 |
17 SetTimeoutCommand::SetTimeoutCommand( | 17 SetTimeoutCommand::SetTimeoutCommand( |
18 const std::vector<std::string>& path_segments, | 18 const std::vector<std::string>& path_segments, |
19 const DictionaryValue* const parameters) : | 19 const DictionaryValue* const parameters) : |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 const DictionaryValue* const parameters) | 74 const DictionaryValue* const parameters) |
75 : SetTimeoutCommand(path_segments, parameters) {} | 75 : SetTimeoutCommand(path_segments, parameters) {} |
76 | 76 |
77 ImplicitWaitCommand::~ImplicitWaitCommand() {} | 77 ImplicitWaitCommand::~ImplicitWaitCommand() {} |
78 | 78 |
79 void ImplicitWaitCommand::SetTimeout(int timeout_ms) { | 79 void ImplicitWaitCommand::SetTimeout(int timeout_ms) { |
80 session_->set_implicit_wait(timeout_ms); | 80 session_->set_implicit_wait(timeout_ms); |
81 } | 81 } |
82 | 82 |
83 } // namespace webdriver | 83 } // namespace webdriver |
OLD | NEW |