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

Side by Side Diff: content/renderer/accessibility/render_accessibility_impl_browsertest.cc

Issue 2581483002: Add support for faster, more limited accessibility modes. (Closed)
Patch Set: Disable tests that can't pass on Android with TODO Created 4 years 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 (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 <tuple> 5 #include <tuple>
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 14 matching lines...) Expand all
25 #include "ui/accessibility/ax_node_data.h" 25 #include "ui/accessibility/ax_node_data.h"
26 26
27 using blink::WebAXObject; 27 using blink::WebAXObject;
28 using blink::WebDocument; 28 using blink::WebDocument;
29 29
30 namespace content { 30 namespace content {
31 31
32 class TestRenderAccessibilityImpl : public RenderAccessibilityImpl { 32 class TestRenderAccessibilityImpl : public RenderAccessibilityImpl {
33 public: 33 public:
34 explicit TestRenderAccessibilityImpl(RenderFrameImpl* render_frame) 34 explicit TestRenderAccessibilityImpl(RenderFrameImpl* render_frame)
35 : RenderAccessibilityImpl(render_frame) { 35 : RenderAccessibilityImpl(render_frame, ACCESSIBILITY_MODE_COMPLETE) {
36 } 36 }
37 37
38 void SendPendingAccessibilityEvents() { 38 void SendPendingAccessibilityEvents() {
39 RenderAccessibilityImpl::SendPendingAccessibilityEvents(); 39 RenderAccessibilityImpl::SendPendingAccessibilityEvents();
40 } 40 }
41 }; 41 };
42 42
43 class RenderAccessibilityImplTest : public RenderViewTest { 43 class RenderAccessibilityImplTest : public RenderViewTest {
44 public: 44 public:
45 RenderAccessibilityImplTest() {} 45 RenderAccessibilityImplTest() {}
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 262
263 ASSERT_EQ(3U, event.update.nodes.size()); 263 ASSERT_EQ(3U, event.update.nodes.size());
264 EXPECT_EQ(node_a.axID(), event.update.node_id_to_clear); 264 EXPECT_EQ(node_a.axID(), event.update.node_id_to_clear);
265 EXPECT_EQ(node_a.axID(), event.update.nodes[0].id); 265 EXPECT_EQ(node_a.axID(), event.update.nodes[0].id);
266 EXPECT_EQ(node_b.axID(), event.update.nodes[1].id); 266 EXPECT_EQ(node_b.axID(), event.update.nodes[1].id);
267 EXPECT_EQ(node_c.axID(), event.update.nodes[2].id); 267 EXPECT_EQ(node_c.axID(), event.update.nodes[2].id);
268 EXPECT_EQ(3, CountAccessibilityNodesSentToBrowser()); 268 EXPECT_EQ(3, CountAccessibilityNodesSentToBrowser());
269 } 269 }
270 270
271 } // namespace content 271 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/accessibility/render_accessibility_impl.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698