This commit is contained in:
yhirose 2018-04-20 09:33:08 -04:00
parent 755f05c02b
commit 6aa3fd6b59
2 changed files with 29 additions and 27 deletions

View file

@ -757,6 +757,7 @@ TEST_F(ServerTest, Gzip)
EXPECT_EQ("gzip", res->get_header_value("Content-Encoding"));
EXPECT_EQ("text/plain", res->get_header_value("Content-Type"));
EXPECT_EQ("33", res->get_header_value("Content-Length"));
EXPECT_EQ("1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", res->body);
EXPECT_EQ(200, res->status);
}
@ -770,6 +771,7 @@ TEST_F(ServerTest, NoGzip)
EXPECT_EQ(false, res->has_header("Content-Encoding"));
EXPECT_EQ("application/octet-stream", res->get_header_value("Content-Type"));
EXPECT_EQ("100", res->get_header_value("Content-Length"));
EXPECT_EQ("1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", res->body);
EXPECT_EQ(200, res->status);
}