| 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 <atlbase.h> | 5 #include <atlbase.h> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "base/win/scoped_comptr.h" | 10 #include "base/win/scoped_comptr.h" |
| 11 #include "chrome/browser/automation/ui_controls.h" | 11 #include "chrome/browser/automation/ui_controls.h" |
| 12 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
| 13 #include "chrome/browser/ui/browser_window.h" | 13 #include "chrome/browser/ui/browser_window.h" |
| 14 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
| 15 #include "chrome/test/base/in_process_browser_test.h" | 15 #include "chrome/test/base/in_process_browser_test.h" |
| 16 #include "chrome/test/base/ui_test_utils.h" | 16 #include "chrome/test/base/ui_test_utils.h" |
| 17 #include "content/browser/renderer_host/render_view_host.h" | 17 #include "content/browser/renderer_host/render_view_host.h" |
| 18 #include "content/browser/renderer_host/render_widget_host_view.h" | |
| 19 #include "content/public/browser/notification_service.h" | 18 #include "content/public/browser/notification_service.h" |
| 20 #include "content/public/browser/notification_types.h" | 19 #include "content/public/browser/notification_types.h" |
| 20 #include "content/public/browser/render_widget_host_view.h" |
| 21 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
| 22 #include "third_party/iaccessible2/ia2_api_all.h" | 22 #include "third_party/iaccessible2/ia2_api_all.h" |
| 23 #include "third_party/isimpledom/ISimpleDOMNode.h" | 23 #include "third_party/isimpledom/ISimpleDOMNode.h" |
| 24 | 24 |
| 25 using content::OpenURLParams; | 25 using content::OpenURLParams; |
| 26 using content::Referrer; | 26 using content::Referrer; |
| 27 using std::auto_ptr; | 27 using std::auto_ptr; |
| 28 using std::vector; | 28 using std::vector; |
| 29 using std::wstring; | 29 using std::wstring; |
| 30 | 30 |
| (...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 ASSERT_EQ(S_OK, hr); | 735 ASSERT_EQ(S_OK, hr); |
| 736 hr = checkbox_isimpledomnode->get_nodeInfo( | 736 hr = checkbox_isimpledomnode->get_nodeInfo( |
| 737 &node_name, &name_space_id, &node_value, &num_children, &unique_id, | 737 &node_name, &name_space_id, &node_value, &num_children, &unique_id, |
| 738 &node_type); | 738 &node_type); |
| 739 ASSERT_EQ(S_OK, hr); | 739 ASSERT_EQ(S_OK, hr); |
| 740 EXPECT_STREQ(L"input", wstring(node_name, SysStringLen(node_name)).c_str()); | 740 EXPECT_STREQ(L"input", wstring(node_name, SysStringLen(node_name)).c_str()); |
| 741 EXPECT_EQ(NODETYPE_ELEMENT, node_type); | 741 EXPECT_EQ(NODETYPE_ELEMENT, node_type); |
| 742 EXPECT_EQ(0, num_children); | 742 EXPECT_EQ(0, num_children); |
| 743 } | 743 } |
| 744 } // namespace. | 744 } // namespace. |
| OLD | NEW |