| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/strings/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "build/build_config.h" |
| 8 #include "content/browser/accessibility/browser_accessibility.h" | 9 #include "content/browser/accessibility/browser_accessibility.h" |
| 9 #include "content/browser/accessibility/browser_accessibility_manager.h" | 10 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 10 #include "content/browser/accessibility/browser_accessibility_state_impl.h" | 11 #include "content/browser/accessibility/browser_accessibility_state_impl.h" |
| 11 #include "content/browser/frame_host/cross_process_frame_connector.h" | 12 #include "content/browser/frame_host/cross_process_frame_connector.h" |
| 12 #include "content/browser/frame_host/frame_tree.h" | 13 #include "content/browser/frame_host/frame_tree.h" |
| 13 #include "content/browser/frame_host/render_frame_proxy_host.h" | 14 #include "content/browser/frame_host/render_frame_proxy_host.h" |
| 14 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" | 15 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
| 15 #include "content/browser/renderer_host/render_view_host_impl.h" | 16 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 16 #include "content/browser/site_per_process_browsertest.h" | 17 #include "content/browser/site_per_process_browsertest.h" |
| 17 #include "content/browser/web_contents/web_contents_impl.h" | 18 #include "content/browser/web_contents/web_contents_impl.h" |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 WaitForAccessibilityTreeToContainText("This page has no title."); | 203 WaitForAccessibilityTreeToContainText("This page has no title."); |
| 203 | 204 |
| 204 // Load second cross-site page into iframe and wait for text from that | 205 // Load second cross-site page into iframe and wait for text from that |
| 205 // page to appear in the accessibility tree. If this succeeds and doesn't | 206 // page to appear in the accessibility tree. If this succeeds and doesn't |
| 206 // time out, the test passes. | 207 // time out, the test passes. |
| 207 LoadCrossSitePageIntoFrame(child, "/title2.html", "bar.com"); | 208 LoadCrossSitePageIntoFrame(child, "/title2.html", "bar.com"); |
| 208 WaitForAccessibilityTreeToContainText("Title Of Awesomeness"); | 209 WaitForAccessibilityTreeToContainText("Title Of Awesomeness"); |
| 209 } | 210 } |
| 210 | 211 |
| 211 } // namespace content | 212 } // namespace content |
| OLD | NEW |