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

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

Issue 325443002: Move about://-related constants from //content to //url (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android ifx Created 6 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 | Annotate | Revision Log
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/file_util.h" 10 #include "base/file_util.h"
(...skipping 21 matching lines...) Expand all
32 namespace content { 32 namespace content {
33 33
34 class AndroidHitTestingBrowserTest : public ContentBrowserTest { 34 class AndroidHitTestingBrowserTest : public ContentBrowserTest {
35 public: 35 public:
36 AndroidHitTestingBrowserTest() {} 36 AndroidHitTestingBrowserTest() {}
37 virtual ~AndroidHitTestingBrowserTest() {} 37 virtual ~AndroidHitTestingBrowserTest() {}
38 }; 38 };
39 39
40 IN_PROC_BROWSER_TEST_F(AndroidHitTestingBrowserTest, 40 IN_PROC_BROWSER_TEST_F(AndroidHitTestingBrowserTest,
41 HitTestOutsideDocumentBoundsReturnsRoot) { 41 HitTestOutsideDocumentBoundsReturnsRoot) {
42 NavigateToURL(shell(), GURL(kAboutBlankURL)); 42 NavigateToURL(shell(), GURL(url::kAboutBlankURL));
43 43
44 // Load the page. 44 // Load the page.
45 AccessibilityNotificationWaiter waiter( 45 AccessibilityNotificationWaiter waiter(
46 shell(), AccessibilityModeComplete, 46 shell(), AccessibilityModeComplete,
47 ui::AX_EVENT_LOAD_COMPLETE); 47 ui::AX_EVENT_LOAD_COMPLETE);
48 const char url_str[] = 48 const char url_str[] =
49 "data:text/html," 49 "data:text/html,"
50 "<!doctype html>" 50 "<!doctype html>"
51 "<html><head><title>Accessibility Test</title></head>" 51 "<html><head><title>Accessibility Test</title></head>"
52 "<body>" 52 "<body>"
(...skipping 19 matching lines...) Expand all
72 hover_waiter.WaitForNotification(); 72 hover_waiter.WaitForNotification();
73 73
74 // Assert that the hover event was fired on the root of the tree. 74 // Assert that the hover event was fired on the root of the tree.
75 int hover_target_id = hover_waiter.event_target_id(); 75 int hover_target_id = hover_waiter.event_target_id();
76 BrowserAccessibility* hovered_node = manager->GetFromID(hover_target_id); 76 BrowserAccessibility* hovered_node = manager->GetFromID(hover_target_id);
77 ASSERT_TRUE(hovered_node != NULL); 77 ASSERT_TRUE(hovered_node != NULL);
78 ASSERT_EQ(ui::AX_ROLE_ROOT_WEB_AREA, hovered_node->GetRole()); 78 ASSERT_EQ(ui::AX_ROLE_ROOT_WEB_AREA, hovered_node->GetRole());
79 } 79 }
80 80
81 } // namespace content 81 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698