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

Side by Side Diff: content/browser/renderer_host/resource_dispatcher_host_browsertest.cc

Issue 10778032: content: Put test_url_constants.* into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
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 "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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698