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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host_unittest.cc

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 10 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
Index: content/browser/renderer_host/resource_dispatcher_host_unittest.cc
===================================================================
--- content/browser/renderer_host/resource_dispatcher_host_unittest.cc (revision 121250)
+++ content/browser/renderer_host/resource_dispatcher_host_unittest.cc (working copy)
@@ -174,7 +174,7 @@
content::PROCESS_TYPE_RENDERER,
content::MockResourceContext::GetInstance(),
new MockURLRequestContextSelector(
- content::MockResourceContext::GetInstance()->request_context())),
+ content::MockResourceContext::GetInstance()->GetRequestContext())),
dest_(dest) {
OnChannelConnected(base::GetCurrentProcId());
}
@@ -303,7 +303,7 @@
virtual void RequestBeginning(
net::URLRequest* request,
- const content::ResourceContext& resource_context,
+ content::ResourceContext* resource_context,
ResourceType::Type resource_type,
int child_id,
int route_id,
@@ -315,7 +315,7 @@
virtual bool ShouldDeferStart(
net::URLRequest* request,
- const content::ResourceContext& resource_context) OVERRIDE {
+ content::ResourceContext* resource_context) OVERRIDE {
return defer_start_;
}
@@ -1299,7 +1299,7 @@
EXPECT_EQ(1, host_.pending_requests());
// Cancelling by context should work.
- host_.CancelRequestsForContext(&filter_->resource_context());
+ host_.CancelRequestsForContext(filter_->resource_context());
EXPECT_EQ(0, host_.pending_requests());
}
@@ -1342,7 +1342,7 @@
EXPECT_EQ(1, host_.pending_requests());
// Cancelling by context should work.
- host_.CancelRequestsForContext(&filter_->resource_context());
+ host_.CancelRequestsForContext(filter_->resource_context());
EXPECT_EQ(0, host_.pending_requests());
}

Powered by Google App Engine
This is Rietveld 408576698