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

Unified Diff: net/http/http_transaction_test_util.cc

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.cc
diff --git a/net/http/http_transaction_test_util.cc b/net/http/http_transaction_test_util.cc
index 0bee91f836e8b77549a7612de693cdcffed42781..78c90960be7430f4fb3e8fe0bf749c70ced1326b 100644
--- a/net/http/http_transaction_test_util.cc
+++ b/net/http/http_transaction_test_util.cc
@@ -504,8 +504,8 @@ MockNetworkLayer::MockNetworkLayer()
done_reading_called_(false),
stop_caching_called_(false),
last_create_transaction_priority_(DEFAULT_PRIORITY),
- clock_(nullptr) {
-}
+ clock_(nullptr),
+ session_(nullptr) {}
MockNetworkLayer::~MockNetworkLayer() {}
@@ -534,7 +534,7 @@ HttpCache* MockNetworkLayer::GetCache() {
}
HttpNetworkSession* MockNetworkLayer::GetSession() {
- return NULL;
+ return session_;
}
void MockNetworkLayer::SetClock(base::Clock* clock) {

Powered by Google App Engine
This is Rietveld 408576698