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

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

Issue 2694413006: Scope and clean up uses of AccessibilityMode. (Closed)
Patch Set: merge Created 3 years, 9 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 (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, ACCESSIBILITY_MODE_COMPLETE) { 35 : RenderAccessibilityImpl(render_frame, kAccessibilityModeComplete) {}
36 }
37 36
38 void SendPendingAccessibilityEvents() { 37 void SendPendingAccessibilityEvents() {
39 RenderAccessibilityImpl::SendPendingAccessibilityEvents(); 38 RenderAccessibilityImpl::SendPendingAccessibilityEvents();
40 } 39 }
41 }; 40 };
42 41
43 class RenderAccessibilityImplTest : public RenderViewTest { 42 class RenderAccessibilityImplTest : public RenderViewTest {
44 public: 43 public:
45 RenderAccessibilityImplTest() {} 44 RenderAccessibilityImplTest() {}
46 45
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 261
263 ASSERT_EQ(3U, event.update.nodes.size()); 262 ASSERT_EQ(3U, event.update.nodes.size());
264 EXPECT_EQ(node_a.axID(), event.update.node_id_to_clear); 263 EXPECT_EQ(node_a.axID(), event.update.node_id_to_clear);
265 EXPECT_EQ(node_a.axID(), event.update.nodes[0].id); 264 EXPECT_EQ(node_a.axID(), event.update.nodes[0].id);
266 EXPECT_EQ(node_b.axID(), event.update.nodes[1].id); 265 EXPECT_EQ(node_b.axID(), event.update.nodes[1].id);
267 EXPECT_EQ(node_c.axID(), event.update.nodes[2].id); 266 EXPECT_EQ(node_c.axID(), event.update.nodes[2].id);
268 EXPECT_EQ(3, CountAccessibilityNodesSentToBrowser()); 267 EXPECT_EQ(3, CountAccessibilityNodesSentToBrowser());
269 } 268 }
270 269
271 } // namespace content 270 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/accessibility/render_accessibility_impl.cc ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698