| OLD | NEW |
| 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 "base/utf_string_conversions.h" | 5 #include "base/utf_string_conversions.h" |
| 6 #include "content/common/accessibility_node_data.h" | 6 #include "content/common/accessibility_node_data.h" |
| 7 #include "content/common/view_messages.h" | 7 #include "content/common/view_messages.h" |
| 8 #include "content/public/test/render_view_test.h" | 8 #include "content/public/test/render_view_test.h" |
| 9 #include "content/renderer/accessibility/renderer_accessibility_complete.h" | 9 #include "content/renderer/accessibility/renderer_accessibility_complete.h" |
| 10 #include "content/renderer/render_view_impl.h" | 10 #include "content/renderer/render_view_impl.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 12 #include "third_party/WebKit/public/platform/WebSize.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec
t.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec
t.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 16 | 16 |
| 17 using WebKit::WebAccessibilityObject; | 17 using WebKit::WebAccessibilityObject; |
| 18 using WebKit::WebDocument; | 18 using WebKit::WebDocument; |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 | 21 |
| 22 class TestRendererAccessibilityComplete : public RendererAccessibilityComplete { | 22 class TestRendererAccessibilityComplete : public RendererAccessibilityComplete { |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 | 401 |
| 402 accessibility->SendPendingAccessibilityNotifications(); | 402 accessibility->SendPendingAccessibilityNotifications(); |
| 403 EXPECT_EQ(4, accessibility->browser_tree_node_count()); | 403 EXPECT_EQ(4, accessibility->browser_tree_node_count()); |
| 404 AccessibilityHostMsg_NotificationParams notification; | 404 AccessibilityHostMsg_NotificationParams notification; |
| 405 GetLastAccNotification(¬ification); | 405 GetLastAccNotification(¬ification); |
| 406 ASSERT_EQ(3U, notification.nodes.size()); | 406 ASSERT_EQ(3U, notification.nodes.size()); |
| 407 EXPECT_EQ(3, CountAccessibilityNodesSentToBrowser()); | 407 EXPECT_EQ(3, CountAccessibilityNodesSentToBrowser()); |
| 408 } | 408 } |
| 409 | 409 |
| 410 } // namespace content | 410 } // namespace content |
| OLD | NEW |