OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/chromedriver/element_commands.h" | 5 #include "chrome/test/chromedriver/element_commands.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/stringprintf.h" | |
13 #include "base/strings/string_split.h" | 12 #include "base/strings/string_split.h" |
| 13 #include "base/strings/stringprintf.h" |
14 #include "base/threading/platform_thread.h" | 14 #include "base/threading/platform_thread.h" |
15 #include "base/time.h" | 15 #include "base/time.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/test/chromedriver/basic_types.h" | 17 #include "chrome/test/chromedriver/basic_types.h" |
18 #include "chrome/test/chromedriver/chrome/chrome.h" | 18 #include "chrome/test/chromedriver/chrome/chrome.h" |
19 #include "chrome/test/chromedriver/chrome/js.h" | 19 #include "chrome/test/chromedriver/chrome/js.h" |
20 #include "chrome/test/chromedriver/chrome/status.h" | 20 #include "chrome/test/chromedriver/chrome/status.h" |
21 #include "chrome/test/chromedriver/chrome/ui_events.h" | 21 #include "chrome/test/chromedriver/chrome/ui_events.h" |
22 #include "chrome/test/chromedriver/chrome/web_view.h" | 22 #include "chrome/test/chromedriver/chrome/web_view.h" |
23 #include "chrome/test/chromedriver/element_util.h" | 23 #include "chrome/test/chromedriver/element_util.h" |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 WebView* web_view, | 434 WebView* web_view, |
435 const std::string& element_id, | 435 const std::string& element_id, |
436 const base::DictionaryValue& params, | 436 const base::DictionaryValue& params, |
437 scoped_ptr<base::Value>* value) { | 437 scoped_ptr<base::Value>* value) { |
438 std::string other_element_id; | 438 std::string other_element_id; |
439 if (!params.GetString("other", &other_element_id)) | 439 if (!params.GetString("other", &other_element_id)) |
440 return Status(kUnknownError, "'other' must be a string"); | 440 return Status(kUnknownError, "'other' must be a string"); |
441 value->reset(new base::FundamentalValue(element_id == other_element_id)); | 441 value->reset(new base::FundamentalValue(element_id == other_element_id)); |
442 return Status(kOk); | 442 return Status(kOk); |
443 } | 443 } |
OLD | NEW |