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

Unified Diff: net/http/http_transaction_unittest.h

Issue 12310075: Cache failover to LOAD_PREFERRING_CACHE if network response suggests offline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved new flag to nearer other flags in same file. Created 7 years, 9 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_unittest.h
diff --git a/net/http/http_transaction_unittest.h b/net/http/http_transaction_unittest.h
index f1bd78ce124435f0fb7ade64db8bb52250842951..1e8869659b4081161ab1bad0fc7e8a3c70c38bc0 100644
--- a/net/http/http_transaction_unittest.h
+++ b/net/http/http_transaction_unittest.h
@@ -62,6 +62,9 @@ struct MockTransaction {
int test_mode;
MockTransactionHandler handler;
net::CertStatus cert_status;
+ // Value returned by MockNetworkTransaction::Start (potentially
+ // asynchronously if |!(test_mode & TEST_MODE_SYNC_NET_START)|.)
+ net::Error return_code;
};
extern const MockTransaction kSimpleGET_Transaction;

Powered by Google App Engine
This is Rietveld 408576698