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

Side by Side Diff: chrome/test/chromedriver/commands_unittest.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
« no previous file with comments | « chrome/test/chromedriver/commands.cc ('k') | chrome/test/chromedriver/devtools_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <string> 5 #include <string>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/test/chromedriver/chrome/status.h"
15 #include "chrome/test/chromedriver/chrome/stub_chrome.h"
16 #include "chrome/test/chromedriver/chrome/stub_web_view.h"
17 #include "chrome/test/chromedriver/chrome/web_view.h"
14 #include "chrome/test/chromedriver/command_executor_impl.h" 18 #include "chrome/test/chromedriver/command_executor_impl.h"
15 #include "chrome/test/chromedriver/commands.h" 19 #include "chrome/test/chromedriver/commands.h"
16 #include "chrome/test/chromedriver/element_commands.h" 20 #include "chrome/test/chromedriver/element_commands.h"
17 #include "chrome/test/chromedriver/fake_session_accessor.h" 21 #include "chrome/test/chromedriver/fake_session_accessor.h"
18 #include "chrome/test/chromedriver/session_commands.h" 22 #include "chrome/test/chromedriver/session_commands.h"
19 #include "chrome/test/chromedriver/status.h"
20 #include "chrome/test/chromedriver/stub_chrome.h"
21 #include "chrome/test/chromedriver/stub_web_view.h"
22 #include "chrome/test/chromedriver/web_view.h"
23 #include "chrome/test/chromedriver/window_commands.h" 23 #include "chrome/test/chromedriver/window_commands.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 #include "third_party/webdriver/atoms.h" 25 #include "third_party/webdriver/atoms.h"
26 26
27 TEST(CommandsTest, GetStatus) { 27 TEST(CommandsTest, GetStatus) {
28 base::DictionaryValue params; 28 base::DictionaryValue params;
29 scoped_ptr<base::Value> value; 29 scoped_ptr<base::Value> value;
30 std::string session_id; 30 std::string session_id;
31 ASSERT_EQ(kOk, ExecuteGetStatus(params, "", &value, &session_id).code()); 31 ASSERT_EQ(kOk, ExecuteGetStatus(params, "", &value, &session_id).code());
32 base::DictionaryValue* dict; 32 base::DictionaryValue* dict;
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 scoped_ptr<base::Value> result; 427 scoped_ptr<base::Value> result;
428 ASSERT_EQ( 428 ASSERT_EQ(
429 kStaleElementReference, 429 kStaleElementReference,
430 ExecuteFindChildElement( 430 ExecuteFindChildElement(
431 1, &session, &web_view, element_id, params, &result).code()); 431 1, &session, &web_view, element_id, params, &result).code());
432 ASSERT_EQ( 432 ASSERT_EQ(
433 kStaleElementReference, 433 kStaleElementReference,
434 ExecuteFindChildElements( 434 ExecuteFindChildElements(
435 1, &session, &web_view, element_id, params, &result).code()); 435 1, &session, &web_view, element_id, params, &result).code());
436 } 436 }
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/commands.cc ('k') | chrome/test/chromedriver/devtools_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698