Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: chrome/test/chromedriver/element_commands.cc

Issue 12848005: [chromedriver] Separate stuff of chrome from chromedriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments and fix compile error on mac. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/third_party/icu/icu_utf.h" 10 #include "base/third_party/icu/icu_utf.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/test/chromedriver/basic_types.h" 12 #include "chrome/test/chromedriver/basic_types.h"
13 #include "chrome/test/chromedriver/chrome.h" 13 #include "chrome/test/chromedriver/chrome/chrome.h"
14 #include "chrome/test/chromedriver/chrome/js.h"
15 #include "chrome/test/chromedriver/chrome/status.h"
16 #include "chrome/test/chromedriver/chrome/ui_events.h"
17 #include "chrome/test/chromedriver/chrome/web_view.h"
14 #include "chrome/test/chromedriver/element_util.h" 18 #include "chrome/test/chromedriver/element_util.h"
15 #include "chrome/test/chromedriver/js.h"
16 #include "chrome/test/chromedriver/key_converter.h" 19 #include "chrome/test/chromedriver/key_converter.h"
17 #include "chrome/test/chromedriver/session.h" 20 #include "chrome/test/chromedriver/session.h"
18 #include "chrome/test/chromedriver/status.h"
19 #include "chrome/test/chromedriver/ui_events.h"
20 #include "chrome/test/chromedriver/web_view.h"
21 #include "third_party/webdriver/atoms.h" 21 #include "third_party/webdriver/atoms.h"
22 22
23 namespace { 23 namespace {
24 24
25 Status FlattenStringArray(const ListValue* src, string16* dest) { 25 Status FlattenStringArray(const ListValue* src, string16* dest) {
26 string16 keys; 26 string16 keys;
27 for (size_t i = 0; i < src->GetSize(); ++i) { 27 for (size_t i = 0; i < src->GetSize(); ++i) {
28 string16 keys_list_part; 28 string16 keys_list_part;
29 if (!src->GetString(i, &keys_list_part)) 29 if (!src->GetString(i, &keys_list_part))
30 return Status(kUnknownError, "keys should be a string"); 30 return Status(kUnknownError, "keys should be a string");
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 WebView* web_view, 412 WebView* web_view,
413 const std::string& element_id, 413 const std::string& element_id,
414 const base::DictionaryValue& params, 414 const base::DictionaryValue& params,
415 scoped_ptr<base::Value>* value) { 415 scoped_ptr<base::Value>* value) {
416 std::string other_element_id; 416 std::string other_element_id;
417 if (!params.GetString("other", &other_element_id)) 417 if (!params.GetString("other", &other_element_id))
418 return Status(kUnknownError, "'other' must be a string"); 418 return Status(kUnknownError, "'other' must be a string");
419 value->reset(new base::FundamentalValue(element_id == other_element_id)); 419 value->reset(new base::FundamentalValue(element_id == other_element_id));
420 return Status(kOk); 420 return Status(kOk);
421 } 421 }
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/dom_tracker_unittest.cc ('k') | chrome/test/chromedriver/element_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698