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

Unified Diff: net/filter/mock_filter_context.h

Issue 1431723002: Add brotli content-encoding filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added Accept-Ecnoding test 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.h
diff --git a/net/filter/mock_filter_context.h b/net/filter/mock_filter_context.h
index 33d41a6e53ee6880f5b9a82ded51f971c075284f..f7b40b7bdbfd896089d54f6dda2f30463c4ea75f 100644
--- a/net/filter/mock_filter_context.h
+++ b/net/filter/mock_filter_context.h
@@ -30,6 +30,9 @@ class MockFilterContext : public FilterContext {
void SetSdchResponse(scoped_ptr<SdchManager::DictionarySet> handle) {
dictionaries_handle_ = handle.Pass();
}
+ void SetBrotliEnabled(bool is_brotli_enabled) {
+ is_brotli_enabled_ = is_brotli_enabled;
+ }
URLRequestContext* GetModifiableURLRequestContext() const {
return context_.get();
}
@@ -66,6 +69,8 @@ class MockFilterContext : public FilterContext {
const BoundNetLog& GetNetLog() const override;
+ bool IsBrotliEnabled() const override;
+
private:
std::string mime_type_;
GURL gurl_;
@@ -76,6 +81,7 @@ class MockFilterContext : public FilterContext {
int response_code_;
scoped_ptr<URLRequestContext> context_;
BoundNetLog net_log_;
+ bool is_brotli_enabled_;
DISALLOW_COPY_AND_ASSIGN(MockFilterContext);
};

Powered by Google App Engine
This is Rietveld 408576698