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

Unified Diff: net/http/http_transaction_test_util.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/http/http_transaction_test_util.h
diff --git a/net/http/http_transaction_test_util.h b/net/http/http_transaction_test_util.h
index 34d8a25aa657483adcf68e98dd4126c1f8b84ff9..01d259c1ccf19d19ebef38ce76d385e696cb2eb5 100644
--- a/net/http/http_transaction_test_util.h
+++ b/net/http/http_transaction_test_util.h
@@ -318,6 +318,8 @@ class MockNetworkLayer : public HttpTransactionFactory,
// The current time (will use clock_ if it is non NULL).
base::Time Now();
+ void set_network_session(HttpNetworkSession* session) { session_ = session; }
+
private:
int transaction_count_;
bool done_reading_called_;
@@ -329,6 +331,8 @@ class MockNetworkLayer : public HttpTransactionFactory,
base::Clock* clock_;
base::WeakPtr<MockNetworkTransaction> last_transaction_;
+
+ HttpNetworkSession* session_;
};
//-----------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698