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/string_util.h" | 5 #include "base/string_util.h" |
6 #include "base/synchronization/waitable_event.h" | 6 #include "base/synchronization/waitable_event.h" |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/browser_tabstrip.h" | 9 #include "chrome/browser/ui/browser_tabstrip.h" |
10 #include "chrome/test/base/in_process_browser_test.h" | 10 #include "chrome/test/base/in_process_browser_test.h" |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 CheckTitleTest(GetMockURL("cross-origin-redirect-blocked.html"), | 454 CheckTitleTest(GetMockURL("cross-origin-redirect-blocked.html"), |
455 "Title Of More Awesomeness", 2); | 455 "Title Of More Awesomeness", 2); |
456 } | 456 } |
457 | 457 |
458 // Tests that ResourceRequestInfoImpl is updated correctly on failed | 458 // Tests that ResourceRequestInfoImpl is updated correctly on failed |
459 // requests, to prevent calling Read on a request that has already failed. | 459 // requests, to prevent calling Read on a request that has already failed. |
460 // See bug 40250. | 460 // See bug 40250. |
461 IN_PROC_BROWSER_TEST_F(ResourceDispatcherHostBrowserTest, | 461 IN_PROC_BROWSER_TEST_F(ResourceDispatcherHostBrowserTest, |
462 CrossSiteFailedRequest) { | 462 CrossSiteFailedRequest) { |
463 // Visit another URL first to trigger a cross-site navigation. | 463 // Visit another URL first to trigger a cross-site navigation. |
464 GURL url(chrome::kTestNewTabURL); | 464 GURL url(content::kTestNewTabURL); |
465 ui_test_utils::NavigateToURL(browser(), url); | 465 ui_test_utils::NavigateToURL(browser(), url); |
466 | 466 |
467 // Visit a URL that fails without calling ResourceDispatcherHost::Read. | 467 // Visit a URL that fails without calling ResourceDispatcherHost::Read. |
468 GURL broken_url("chrome://theme"); | 468 GURL broken_url("chrome://theme"); |
469 CheckTitleTest(broken_url, "chrome://theme/ is not available", 1); | 469 CheckTitleTest(broken_url, "chrome://theme/ is not available", 1); |
470 } | 470 } |
OLD | NEW |