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

Side by Side Diff: content/browser/accessibility/hit_testing_browsertest.cc

Issue 2000403003: [forbots] IWYU for ax_enums.h Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 10 matching lines...) Expand all
21 #include "content/public/browser/web_contents.h" 21 #include "content/public/browser/web_contents.h"
22 #include "content/public/common/content_paths.h" 22 #include "content/public/common/content_paths.h"
23 #include "content/public/common/content_switches.h" 23 #include "content/public/common/content_switches.h"
24 #include "content/public/common/url_constants.h" 24 #include "content/public/common/url_constants.h"
25 #include "content/public/test/content_browser_test.h" 25 #include "content/public/test/content_browser_test.h"
26 #include "content/public/test/content_browser_test_utils.h" 26 #include "content/public/test/content_browser_test_utils.h"
27 #include "content/shell/browser/shell.h" 27 #include "content/shell/browser/shell.h"
28 #include "content/test/accessibility_browser_test_utils.h" 28 #include "content/test/accessibility_browser_test_utils.h"
29 #include "net/dns/mock_host_resolver.h" 29 #include "net/dns/mock_host_resolver.h"
30 #include "testing/gtest/include/gtest/gtest.h" 30 #include "testing/gtest/include/gtest/gtest.h"
31 #include "ui/accessibility/ax_enums.h"
31 32
32 namespace content { 33 namespace content {
33 34
34 class AccessibilityHitTestingBrowserTest : public ContentBrowserTest { 35 class AccessibilityHitTestingBrowserTest : public ContentBrowserTest {
35 public: 36 public:
36 AccessibilityHitTestingBrowserTest() {} 37 AccessibilityHitTestingBrowserTest() {}
37 ~AccessibilityHitTestingBrowserTest() override {} 38 ~AccessibilityHitTestingBrowserTest() override {}
38 39
39 protected: 40 protected:
40 BrowserAccessibility* HitTestAndWaitForResult(const gfx::Point& point) { 41 BrowserAccessibility* HitTestAndWaitForResult(const gfx::Point& point) {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 ASSERT_EQ("Scrolled Button", 137 ASSERT_EQ("Scrolled Button",
137 hovered_node->GetStringAttribute(ui::AX_ATTR_NAME)); 138 hovered_node->GetStringAttribute(ui::AX_ATTR_NAME));
138 139
139 // (50, 505) -> div in second iframe 140 // (50, 505) -> div in second iframe
140 hovered_node = HitTestAndWaitForResult(gfx::Point(50, 505)); 141 hovered_node = HitTestAndWaitForResult(gfx::Point(50, 505));
141 ASSERT_TRUE(hovered_node != NULL); 142 ASSERT_TRUE(hovered_node != NULL);
142 ASSERT_EQ(ui::AX_ROLE_DIV, hovered_node->GetRole()); 143 ASSERT_EQ(ui::AX_ROLE_DIV, hovered_node->GetRole());
143 } 144 }
144 145
145 } // namespace content 146 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698