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 <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" | 14 #include "chrome/test/chromedriver/chrome/status.h" |
15 #include "chrome/test/chromedriver/chrome/stub_chrome.h" | 15 #include "chrome/test/chromedriver/chrome/stub_chrome.h" |
16 #include "chrome/test/chromedriver/chrome/stub_web_view.h" | 16 #include "chrome/test/chromedriver/chrome/stub_web_view.h" |
17 #include "chrome/test/chromedriver/chrome/web_view.h" | 17 #include "chrome/test/chromedriver/chrome/web_view.h" |
18 #include "chrome/test/chromedriver/command_executor_impl.h" | |
19 #include "chrome/test/chromedriver/commands.h" | 18 #include "chrome/test/chromedriver/commands.h" |
20 #include "chrome/test/chromedriver/element_commands.h" | 19 #include "chrome/test/chromedriver/element_commands.h" |
21 #include "chrome/test/chromedriver/fake_session_accessor.h" | 20 #include "chrome/test/chromedriver/fake_session_accessor.h" |
22 #include "chrome/test/chromedriver/session_commands.h" | 21 #include "chrome/test/chromedriver/session_commands.h" |
23 #include "chrome/test/chromedriver/window_commands.h" | 22 #include "chrome/test/chromedriver/window_commands.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
25 #include "third_party/webdriver/atoms.h" | 24 #include "third_party/webdriver/atoms.h" |
26 | 25 |
27 TEST(CommandsTest, GetStatus) { | 26 TEST(CommandsTest, GetStatus) { |
28 base::DictionaryValue params; | 27 base::DictionaryValue params; |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 scoped_ptr<base::Value> result; | 489 scoped_ptr<base::Value> result; |
491 ASSERT_EQ( | 490 ASSERT_EQ( |
492 kStaleElementReference, | 491 kStaleElementReference, |
493 ExecuteFindChildElement( | 492 ExecuteFindChildElement( |
494 1, &session, &web_view, element_id, params, &result).code()); | 493 1, &session, &web_view, element_id, params, &result).code()); |
495 ASSERT_EQ( | 494 ASSERT_EQ( |
496 kStaleElementReference, | 495 kStaleElementReference, |
497 ExecuteFindChildElements( | 496 ExecuteFindChildElements( |
498 1, &session, &web_view, element_id, params, &result).code()); | 497 1, &session, &web_view, element_id, params, &result).code()); |
499 } | 498 } |
OLD | NEW |