OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/webelement_commands.h" | 5 #include "chrome/test/webdriver/commands/webelement_commands.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/string_split.h" | |
11 #include "base/string_util.h" | 10 #include "base/string_util.h" |
12 #include "base/stringprintf.h" | 11 #include "base/stringprintf.h" |
| 12 #include "base/strings/string_split.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/test/webdriver/commands/response.h" | 15 #include "chrome/test/webdriver/commands/response.h" |
16 #include "chrome/test/webdriver/webdriver_basic_types.h" | 16 #include "chrome/test/webdriver/webdriver_basic_types.h" |
17 #include "chrome/test/webdriver/webdriver_error.h" | 17 #include "chrome/test/webdriver/webdriver_error.h" |
18 #include "chrome/test/webdriver/webdriver_session.h" | 18 #include "chrome/test/webdriver/webdriver_session.h" |
19 #include "chrome/test/webdriver/webdriver_util.h" | 19 #include "chrome/test/webdriver/webdriver_util.h" |
20 #include "third_party/webdriver/atoms.h" | 20 #include "third_party/webdriver/atoms.h" |
21 | 21 |
22 namespace webdriver { | 22 namespace webdriver { |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 return; | 623 return; |
624 } | 624 } |
625 if (!result->IsType(base::Value::TYPE_STRING)) { | 625 if (!result->IsType(base::Value::TYPE_STRING)) { |
626 response->SetError(new Error(kUnknownError, "Result is not string type")); | 626 response->SetError(new Error(kUnknownError, "Result is not string type")); |
627 return; | 627 return; |
628 } | 628 } |
629 response->SetValue(result.release()); | 629 response->SetValue(result.release()); |
630 } | 630 } |
631 | 631 |
632 } // namespace webdriver | 632 } // namespace webdriver |
OLD | NEW |