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

Unified Diff: net/http/http_transaction_test_util.h

Issue 2886483002: Adds a new class HttpCache::Writers for multiple cache transactions reading from the network. (Closed)
Patch Set: Feedback addressed Created 3 years, 6 months 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 96afead791d093370df60d641e968f2d653e2913..e2839cdb727b6106f58726c7b74410e324ce4d1e 100644
--- a/net/http/http_transaction_test_util.h
+++ b/net/http/http_transaction_test_util.h
@@ -241,6 +241,10 @@ class MockNetworkTransaction
CreateHelper* websocket_handshake_stream_create_helper() {
return websocket_handshake_stream_create_helper_;
}
+
+ // Error to return on a future Read call.
+ void SetReadError(int error);
+
RequestPriority priority() const { return priority_; }
const HttpRequestInfo* request() const { return request_; }
@@ -282,6 +286,8 @@ class MockNetworkTransaction
CompletionCallback resume_start_callback_; // used for pause and restart.
+ int read_error_;
+
base::WeakPtrFactory<MockNetworkTransaction> weak_factory_;
};

Powered by Google App Engine
This is Rietveld 408576698