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

Unified Diff: chrome/browser/prerender/prerender_tracker_unittest.cc

Issue 425653002: content: ResourceType cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/prerender/prerender_resource_throttle.cc ('k') | chrome/browser/prerender/prerender_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_tracker_unittest.cc
diff --git a/chrome/browser/prerender/prerender_tracker_unittest.cc b/chrome/browser/prerender/prerender_tracker_unittest.cc
index fa4330e6d844ce8773efda687583c464df627009..eb19533f2c87f67b22edb7e61882de0854235c4c 100644
--- a/chrome/browser/prerender/prerender_tracker_unittest.cc
+++ b/chrome/browser/prerender/prerender_tracker_unittest.cc
@@ -228,9 +228,13 @@ TEST_F(PrerenderTrackerTest, PrerenderThrottledRedirectResume) {
net::DEFAULT_PRIORITY,
&delegate,
&url_request_context);
- content::ResourceRequestInfo::AllocateForTesting(
- &request, ResourceType::IMAGE, NULL,
- kDefaultChildId, kDefaultRouteId, MSG_ROUTING_NONE, true);
+ content::ResourceRequestInfo::AllocateForTesting(&request,
+ content::RESOURCE_TYPE_IMAGE,
+ NULL,
+ kDefaultChildId,
+ kDefaultRouteId,
+ MSG_ROUTING_NONE,
+ true);
// Install a prerender throttle.
PrerenderResourceThrottle throttle(&request);
@@ -268,8 +272,13 @@ TEST_F(PrerenderTrackerTest, PrerenderThrottledRedirectMainFrame) {
&delegate,
&url_request_context);
content::ResourceRequestInfo::AllocateForTesting(
- &request, ResourceType::MAIN_FRAME, NULL,
- kDefaultChildId, kDefaultRouteId, MSG_ROUTING_NONE, true);
+ &request,
+ content::RESOURCE_TYPE_MAIN_FRAME,
+ NULL,
+ kDefaultChildId,
+ kDefaultRouteId,
+ MSG_ROUTING_NONE,
+ true);
// Install a prerender throttle.
PrerenderResourceThrottle throttle(&request);
@@ -304,9 +313,13 @@ TEST_F(PrerenderTrackerTest, PrerenderThrottledRedirectSyncXHR) {
net::DEFAULT_PRIORITY,
&delegate,
&url_request_context);
- content::ResourceRequestInfo::AllocateForTesting(
- &request, ResourceType::XHR, NULL,
- kDefaultChildId, kDefaultRouteId, MSG_ROUTING_NONE, false);
+ content::ResourceRequestInfo::AllocateForTesting(&request,
+ content::RESOURCE_TYPE_XHR,
+ NULL,
+ kDefaultChildId,
+ kDefaultRouteId,
+ MSG_ROUTING_NONE,
+ false);
// Install a prerender throttle.
PrerenderResourceThrottle throttle(&request);
« no previous file with comments | « chrome/browser/prerender/prerender_resource_throttle.cc ('k') | chrome/browser/prerender/prerender_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698