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

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 BrotliSlowRead to u_r_j_unittest Created 5 years 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 7744909c871681cd759aa0d8f5d582ae85e8c23b..7e6b54ed9888471113f3fea190d4357cafbba98d 100644
--- a/net/http/http_transaction_test_util.h
+++ b/net/http/http_transaction_test_util.h
@@ -320,6 +320,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; }
xunjieli 2015/12/02 18:26:31 I don't think we want to do this, see the comment
eustas 2015/12/03 12:32:07 Acknowledged.
+
private:
int transaction_count_;
bool done_reading_called_;
@@ -331,6 +333,8 @@ class MockNetworkLayer : public HttpTransactionFactory,
base::Clock* clock_;
base::WeakPtr<MockNetworkTransaction> last_transaction_;
+
+ HttpNetworkSession* session_;
};
//-----------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698