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

Unified Diff: net/filter/mock_filter_context.cc

Issue 1431723002: Add brotli content-encoding filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add brotli reference link Created 5 years, 1 month 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: net/filter/mock_filter_context.cc
diff --git a/net/filter/mock_filter_context.cc b/net/filter/mock_filter_context.cc
index ebcaa1865211a033c45f201d3bbaf069d2841cdd..f2cc07cdf2b2fff16ff9758cbc50b281a8e1425b 100644
--- a/net/filter/mock_filter_context.cc
+++ b/net/filter/mock_filter_context.cc
@@ -12,8 +12,8 @@ MockFilterContext::MockFilterContext()
: is_cached_content_(false),
ok_to_call_get_url_(true),
response_code_(-1),
- context_(new URLRequestContext()) {
-}
+ context_(new URLRequestContext()),
+ is_brotli_enabled_(false) {}
MockFilterContext::~MockFilterContext() {}
@@ -60,4 +60,8 @@ const BoundNetLog& MockFilterContext::GetNetLog() const {
return net_log_;
}
+bool MockFilterContext::IsBrotliEnabled() const {
+ return is_brotli_enabled_;
+}
+
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698