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

Unified Diff: net/url_request/url_request_unittest.cc

Issue 8496016: Report ERR_CONTENT_LENGTH_MISMATCH when the count of bytes received doesn't match Content-Length. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Clear error Created 9 years, 1 month 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 | « net/url_request/url_request_http_job.cc ('k') | webkit/glue/weburlloader_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_unittest.cc
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc
index 33fe408afcca2a89f3bd4e68749cee3b92e4c1ac..00387ef1d2cfced68b9b36069e26286fb7cc8ed4 100644
--- a/net/url_request/url_request_unittest.cc
+++ b/net/url_request/url_request_unittest.cc
@@ -879,7 +879,7 @@ TEST_F(URLRequestTestHTTP, GetZippedTest) {
// L & M are larger than the data sent, and show an error.
// S has too little data, but we seem to accept it.
const bool test_expect_success[num_tests] =
- { true, true, false, false, true };
+ { true, false, false, false, true };
for (int i = 0; i < num_tests ; i++) {
TestDelegate d;
@@ -911,7 +911,7 @@ TEST_F(URLRequestTestHTTP, GetZippedTest) {
<< " Parameter = \"" << test_file << "\"";
} else {
EXPECT_EQ(URLRequestStatus::FAILED, r.status().status());
- EXPECT_EQ(-100, r.status().error())
+ EXPECT_EQ(ERR_CONTENT_LENGTH_MISMATCH, r.status().error())
<< " Parameter = \"" << test_file << "\"";
}
}
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | webkit/glue/weburlloader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698