summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2018-08-08 18:29:17 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2018-08-08 19:03:55 +0300
commit20d21cb7bcc6fe7639f546c053cfac1145430c4c (patch)
tree0dd7019379f20501b1ae02cb5d4ba398c82b9fd1 /test
parentca7ef2aac74dd2c2ba478aa04fa3159ca2653d26 (diff)
downloadqtlocation-mapboxgl-20d21cb7bcc6fe7639f546c053cfac1145430c4c.tar.gz
Revert "[core] Replace Boost.Spirit with std::regex in CacheControl::parse()"
This reverts commit 990b3b11b9427ffd86f693d3f4c3dd351891e5d0.
Diffstat (limited to 'test')
-rw-r--r--test/storage/headers.test.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/storage/headers.test.cpp b/test/storage/headers.test.cpp
index 613f469b59..b7dcfc025d 100644
--- a/test/storage/headers.test.cpp
+++ b/test/storage/headers.test.cpp
@@ -10,10 +10,6 @@ TEST(HTTPHeader, Parsing) {
ASSERT_FALSE(bool(cc.maxAge));
EXPECT_FALSE(cc.mustRevalidate);
- cc = http::CacheControl::parse(R"#("max-age=34)#");
- ASSERT_FALSE(bool(cc.maxAge));
- EXPECT_FALSE(cc.mustRevalidate);
-
cc = http::CacheControl::parse(R"#(max-age =34)#");
ASSERT_TRUE(bool(cc.maxAge));
EXPECT_EQ(34u, *cc.maxAge);
@@ -42,11 +38,6 @@ TEST(HTTPHeader, Parsing) {
EXPECT_EQ(3u, *cc.maxAge);
EXPECT_FALSE(cc.mustRevalidate);
- cc = http::CacheControl::parse(R"#(max-age=3,max-age=""34)#");
- ASSERT_TRUE(bool(cc.maxAge));
- EXPECT_EQ(3u, *cc.maxAge);
- EXPECT_FALSE(cc.mustRevalidate);
-
cc = http::CacheControl::parse(R"#(max-age="\",max-age=4,")#");
ASSERT_FALSE(bool(cc.maxAge));
EXPECT_FALSE(cc.mustRevalidate);