| 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 "build/build_config.h" |
| 9 #include "content/browser/accessibility/browser_accessibility.h" | 9 #include "content/browser/accessibility/browser_accessibility.h" |
| 10 #include "content/browser/accessibility/browser_accessibility_manager.h" | 10 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "content/public/browser/web_contents_observer.h" | 22 #include "content/public/browser/web_contents_observer.h" |
| 23 #include "content/public/common/content_switches.h" | 23 #include "content/public/common/content_switches.h" |
| 24 #include "content/public/test/content_browser_test.h" | 24 #include "content/public/test/content_browser_test.h" |
| 25 #include "content/public/test/content_browser_test_utils.h" | 25 #include "content/public/test/content_browser_test_utils.h" |
| 26 #include "content/public/test/test_utils.h" | 26 #include "content/public/test/test_utils.h" |
| 27 #include "content/shell/browser/shell.h" | 27 #include "content/shell/browser/shell.h" |
| 28 #include "content/test/accessibility_browser_test_utils.h" | 28 #include "content/test/accessibility_browser_test_utils.h" |
| 29 #include "content/test/content_browser_test_utils_internal.h" | 29 #include "content/test/content_browser_test_utils_internal.h" |
| 30 #include "net/dns/mock_host_resolver.h" | 30 #include "net/dns/mock_host_resolver.h" |
| 31 #include "net/test/embedded_test_server/embedded_test_server.h" | 31 #include "net/test/embedded_test_server/embedded_test_server.h" |
| 32 #include "ui/accessibility/ax_enums.h" |
| 32 #include "url/gurl.h" | 33 #include "url/gurl.h" |
| 33 #include "url/url_constants.h" | 34 #include "url/url_constants.h" |
| 34 | 35 |
| 35 // These tests time out on Android. | 36 // These tests time out on Android. |
| 36 #if defined(OS_ANDROID) | 37 #if defined(OS_ANDROID) |
| 37 #define MAYBE_SitePerProcessAccessibilityBrowserTest \ | 38 #define MAYBE_SitePerProcessAccessibilityBrowserTest \ |
| 38 DISABLED_SitePerProcessAccessibilityBrowserTest | 39 DISABLED_SitePerProcessAccessibilityBrowserTest |
| 39 #else | 40 #else |
| 40 #define MAYBE_SitePerProcessAccessibilityBrowserTest \ | 41 #define MAYBE_SitePerProcessAccessibilityBrowserTest \ |
| 41 SitePerProcessAccessibilityBrowserTest | 42 SitePerProcessAccessibilityBrowserTest |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 WaitForAccessibilityTreeToContainText("This page has no title."); | 198 WaitForAccessibilityTreeToContainText("This page has no title."); |
| 198 | 199 |
| 199 // Load second cross-site page into iframe and wait for text from that | 200 // Load second cross-site page into iframe and wait for text from that |
| 200 // page to appear in the accessibility tree. If this succeeds and doesn't | 201 // page to appear in the accessibility tree. If this succeeds and doesn't |
| 201 // time out, the test passes. | 202 // time out, the test passes. |
| 202 LoadCrossSitePageIntoFrame(child, "/title2.html", "bar.com"); | 203 LoadCrossSitePageIntoFrame(child, "/title2.html", "bar.com"); |
| 203 WaitForAccessibilityTreeToContainText("Title Of Awesomeness"); | 204 WaitForAccessibilityTreeToContainText("Title Of Awesomeness"); |
| 204 } | 205 } |
| 205 | 206 |
| 206 } // namespace content | 207 } // namespace content |
| OLD | NEW |