diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/http/http_response_headers_unittest.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/http/http_response_headers_unittest.cc b/net/http/http_response_headers_unittest.cc index c2d34b4..b089cac 100644 --- a/net/http/http_response_headers_unittest.cc +++ b/net/http/http_response_headers_unittest.cc @@ -188,6 +188,19 @@ TEST(HttpResponseHeadersTest, NormalizeHeadersBadStatus) { TestCommon(test); } +TEST(HttpResponseHeadersTest, NormalizeHeadersInvalidStatusCode) { + TestData test = { + "HTTP/1.1 -1 Unknown\n", + + "HTTP/1.1 200 OK\n", + + 200, + net::HttpVersion(1,1), + net::HttpVersion(1,1) + }; + TestCommon(test); +} + TEST(HttpResponseHeadersTest, NormalizeHeadersEmpty) { TestData test = { "", |