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

Unified Diff: net/filter/mock_filter_context.cc

Issue 298063006: Make SdchManager per-profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated comments and changed test name. Created 6 years, 6 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 | « net/filter/mock_filter_context.h ('k') | net/filter/sdch_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/filter/mock_filter_context.cc
diff --git a/net/filter/mock_filter_context.cc b/net/filter/mock_filter_context.cc
index 06905c0e070790be3cc532623f9c980d328cf4c5..eb3484c19eb1eabcbc23a3d2df9e4ab47d8771ea 100644
--- a/net/filter/mock_filter_context.cc
+++ b/net/filter/mock_filter_context.cc
@@ -4,13 +4,16 @@
#include "net/filter/mock_filter_context.h"
+#include "net/url_request/url_request_context.h"
+
namespace net {
MockFilterContext::MockFilterContext()
: is_cached_content_(false),
is_download_(false),
is_sdch_response_(false),
- response_code_(-1) {
+ response_code_(-1),
+ context_(new URLRequestContext()) {
}
MockFilterContext::~MockFilterContext() {}
@@ -49,4 +52,8 @@ int64 MockFilterContext::GetByteReadCount() const { return 0; }
int MockFilterContext::GetResponseCode() const { return response_code_; }
+const URLRequestContext* MockFilterContext::GetURLRequestContext() const {
+ return context_.get();
+}
+
} // namespace net
« no previous file with comments | « net/filter/mock_filter_context.h ('k') | net/filter/sdch_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698