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

Unified Diff: net/http/http_cache_unittest.cc

Issue 10872044: Retry failed network requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix bug Created 8 years, 4 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
« no previous file with comments | « no previous file | net/http/http_transaction_unittest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache_unittest.cc
===================================================================
--- net/http/http_cache_unittest.cc (revision 152798)
+++ net/http/http_cache_unittest.cc (working copy)
@@ -236,6 +236,7 @@
bool FastTransactionServer::no_store;
const MockTransaction kFastNoStoreGET_Transaction = {
+ net::OK,
"http://www.google.com/nostore",
"GET",
base::Time(),
@@ -373,6 +374,7 @@
}
const MockTransaction kRangeGET_TransactionOK = {
+ net::OK,
"http://www.google.com/range",
"GET",
base::Time(),
@@ -1791,14 +1793,14 @@
// We will control the network layer's responses for |kUrl| using
// |mock_network_response|.
- MockTransaction mock_network_response = { 0 };
+ MockTransaction mock_network_response = { net::OK, 0 };
mock_network_response.url = kUrl;
AddMockTransaction(&mock_network_response);
// Request |kUrl| for the first time. It should hit the network and
// receive |kNetResponse1|, which it saves into the HTTP cache.
- MockTransaction request = { 0 };
+ MockTransaction request = { net::OK, 0 };
request.url = kUrl;
request.method = "GET";
request.request_headers = "";
@@ -1982,11 +1984,11 @@
// We will control the network layer's responses for |kUrl| using
// |mock_network_response|.
- MockTransaction mock_network_response = { 0 };
+ MockTransaction mock_network_response = { net::OK, 0 };
mock_network_response.url = kUrl;
AddMockTransaction(&mock_network_response);
- MockTransaction request = { 0 };
+ MockTransaction request = { net::OK, 0 };
request.url = kUrl;
request.method = "GET";
request.request_headers = kExtraRequestHeaders;
@@ -2026,11 +2028,11 @@
// We will control the network layer's responses for |kUrl| using
// |mock_network_response|.
- MockTransaction mock_network_response = { 0 };
+ MockTransaction mock_network_response = { net::OK, 0 };
mock_network_response.url = kUrl;
AddMockTransaction(&mock_network_response);
- MockTransaction request = { 0 };
+ MockTransaction request = { net::OK, 0 };
request.url = kUrl;
request.method = "GET";
request.request_headers = kExtraRequestHeaders;
@@ -4658,14 +4660,14 @@
const char* kUrl = "http://foobar";
const char* kData = "body";
- MockTransaction mock_network_response = { 0 };
+ MockTransaction mock_network_response = { net::OK, 0 };
mock_network_response.url = kUrl;
AddMockTransaction(&mock_network_response);
// Request |kUrl|, causing |kNetResponse1| to be written to the cache.
- MockTransaction request = { 0 };
+ MockTransaction request = { net::OK, 0 };
request.url = kUrl;
request.method = "GET";
request.request_headers = "";
« no previous file with comments | « no previous file | net/http/http_transaction_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698