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

Unified Diff: content/public/test/mock_resource_context.h

Issue 17127002: Correctly integrate StoragePartition into TestingProfile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix InstantNTP test. Created 7 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 | « content/browser/loader/resource_loader_unittest.cc ('k') | content/public/test/mock_resource_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_resource_context.h
diff --git a/content/public/test/mock_resource_context.h b/content/public/test/mock_resource_context.h
index b29cbbe71cbc1255677c0784855a9da2c70948a2..e42f5c62b1911fa03b2af6b5eadf814f9949d3f9 100644
--- a/content/public/test/mock_resource_context.h
+++ b/content/public/test/mock_resource_context.h
@@ -10,11 +10,19 @@
#include "base/memory/scoped_ptr.h"
#include "content/public/browser/resource_context.h"
+namespace net {
+class URLRequestContext;
+}
+
namespace content {
class MockResourceContext : public ResourceContext {
public:
MockResourceContext();
+
+ // Does not take ownership of |test_request_context|.
+ explicit MockResourceContext(net::URLRequestContext* test_request_context);
+
virtual ~MockResourceContext();
// ResourceContext implementation:
@@ -22,7 +30,7 @@ class MockResourceContext : public ResourceContext {
virtual net::URLRequestContext* GetRequestContext() OVERRIDE;
private:
- scoped_ptr<net::URLRequestContext> test_request_context_;
+ net::URLRequestContext* test_request_context_;
DISALLOW_COPY_AND_ASSIGN(MockResourceContext);
};
« no previous file with comments | « content/browser/loader/resource_loader_unittest.cc ('k') | content/public/test/mock_resource_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698