| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <cmath> | 9 #include <cmath> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 } | 520 } |
| 521 | 521 |
| 522 Status ExecuteElementEquals(Session* session, | 522 Status ExecuteElementEquals(Session* session, |
| 523 WebView* web_view, | 523 WebView* web_view, |
| 524 const std::string& element_id, | 524 const std::string& element_id, |
| 525 const base::DictionaryValue& params, | 525 const base::DictionaryValue& params, |
| 526 std::unique_ptr<base::Value>* value) { | 526 std::unique_ptr<base::Value>* value) { |
| 527 std::string other_element_id; | 527 std::string other_element_id; |
| 528 if (!params.GetString("other", &other_element_id)) | 528 if (!params.GetString("other", &other_element_id)) |
| 529 return Status(kUnknownError, "'other' must be a string"); | 529 return Status(kUnknownError, "'other' must be a string"); |
| 530 value->reset(new base::FundamentalValue(element_id == other_element_id)); | 530 value->reset(new base::Value(element_id == other_element_id)); |
| 531 return Status(kOk); | 531 return Status(kOk); |
| 532 } | 532 } |
| OLD | NEW |