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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 (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 <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 return; 159 return;
160 } 160 }
161 161
162 // Load the page. 162 // Load the page.
163 string16 html_contents16; 163 string16 html_contents16;
164 html_contents16 = UTF8ToUTF16(html_contents); 164 html_contents16 = UTF8ToUTF16(html_contents);
165 GURL url = GetTestUrl("accessibility", 165 GURL url = GetTestUrl("accessibility",
166 html_file.BaseName().MaybeAsASCII().c_str()); 166 html_file.BaseName().MaybeAsASCII().c_str());
167 AccessibilityNotificationWaiter waiter( 167 AccessibilityNotificationWaiter waiter(
168 shell(), AccessibilityModeComplete, 168 shell(), AccessibilityModeComplete,
169 WebKit::WebAXEventLoadComplete); 169 blink::WebAXEventLoadComplete);
170 NavigateToURL(shell(), url); 170 NavigateToURL(shell(), url);
171 waiter.WaitForNotification(); 171 waiter.WaitForNotification();
172 172
173 RenderWidgetHostViewPort* host_view = RenderWidgetHostViewPort::FromRWHV( 173 RenderWidgetHostViewPort* host_view = RenderWidgetHostViewPort::FromRWHV(
174 shell()->web_contents()->GetRenderWidgetHostView()); 174 shell()->web_contents()->GetRenderWidgetHostView());
175 AccessibilityTreeFormatter formatter( 175 AccessibilityTreeFormatter formatter(
176 host_view->GetBrowserAccessibilityManager()->GetRoot()); 176 host_view->GetBrowserAccessibilityManager()->GetRoot());
177 177
178 // Parse filters in the test file. 178 // Parse filters in the test file.
179 std::vector<Filter> filters; 179 std::vector<Filter> filters;
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 451
452 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) { 452 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) {
453 RunTest(FILE_PATH_LITERAL("ul.html")); 453 RunTest(FILE_PATH_LITERAL("ul.html"));
454 } 454 }
455 455
456 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { 456 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) {
457 RunTest(FILE_PATH_LITERAL("wbr.html")); 457 RunTest(FILE_PATH_LITERAL("wbr.html"));
458 } 458 }
459 459
460 } // namespace content 460 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698