Export quic_http_response_cache_data into QUICHE Remove quic_http_response_cache_data_with_push, as it's unused. PiperOrigin-RevId: 448104294
diff --git a/quiche/quic/test_tools/quic_http_response_cache_data/test.example.com/index.html b/quiche/quic/test_tools/quic_http_response_cache_data/test.example.com/index.html new file mode 100644 index 0000000..5edaf9a --- /dev/null +++ b/quiche/quic/test_tools/quic_http_response_cache_data/test.example.com/index.html
@@ -0,0 +1,63 @@ +HTTP/1.1 200 OK +Date: Tue, 28 Aug 2012 15:08:56 GMT +Server: Apache/2.2.3 (CentOS) +X-Powered-By: PHP/5.1.6 +Set-Cookie: bblastvisit=1346166536; expires=Wed, 28-Aug-2013 15:08:56 GMT; path=/; domain=.nasioc.com +Set-Cookie: bblastactivity=0; expires=Wed, 28-Aug-2013 15:08:56 GMT; path=/; domain=.nasioc.com +Expires: 0 +Cache-Control: private, post-check=0, pre-check=0, max-age=0 +Pragma: no-cache +X-UA-Compatible: IE=7 +Connection: close +Content-Type: text/html; charset=ISO-8859-1 + +<!doctype html> +<html> +<head> + <title>Example Domain</title> + + <meta charset="utf-8" /> + <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <style type="text/css"> + body { + background-color: #f0f0f2; + margin: 0; + padding: 0; + font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + + } + div { + width: 600px; + margin: 5em auto; + padding: 50px; + background-color: #fff; + border-radius: 1em; + } + a:link, a:visited { + color: #38488f; + text-decoration: none; + } + @media (max-width: 700px) { + body { + background-color: #fff; + } + div { + width: auto; + margin: 0 auto; + border-radius: 0; + padding: 1em; + } + } + </style> +</head> + +<body> +<div> + <h1>Example Domain</h1> + <p>This domain is established to be used for illustrative examples in documents. You may use this + domain in examples without prior coordination or asking for permission.</p> + <p><a href="http://www.iana.org/domains/example">More information...</a></p> +</div> +</body> +</html>
diff --git a/quiche/quic/test_tools/quic_http_response_cache_data/test.example.com/map.html b/quiche/quic/test_tools/quic_http_response_cache_data/test.example.com/map.html new file mode 100644 index 0000000..b34c3b0 --- /dev/null +++ b/quiche/quic/test_tools/quic_http_response_cache_data/test.example.com/map.html
@@ -0,0 +1,65 @@ +HTTP/1.1 200 OK +Date: Tue, 28 Aug 2012 15:08:56 GMT +Server: Apache/2.2.3 (CentOS) +X-Powered-By: PHP/5.1.6 +Set-Cookie: bblastvisit=1346166536; expires=Wed, 28-Aug-2013 15:08:56 GMT; path=/; domain=.nasioc.com +Set-Cookie: bblastactivity=0; expires=Wed, 28-Aug-2013 15:08:56 GMT; path=/; domain=.nasioc.com +Expires: 0 +Cache-Control: private, post-check=0, pre-check=0, max-age=0 +Pragma: no-cache +X-UA-Compatible: IE=7 +Connection: close +Content-Type: text/html; charset=ISO-8859-1 +X-Original-Url: http://test.example.com/site_map.html + + +<!doctype html> +<html> +<head> + <title>Example Domain</title> + + <meta charset="utf-8" /> + <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <style type="text/css"> + body { + background-color: #f0f0f2; + margin: 0; + padding: 0; + font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + + } + div { + width: 600px; + margin: 5em auto; + padding: 50px; + background-color: #fff; + border-radius: 1em; + } + a:link, a:visited { + color: #38488f; + text-decoration: none; + } + @media (max-width: 700px) { + body { + background-color: #fff; + } + div { + width: auto; + margin: 0 auto; + border-radius: 0; + padding: 1em; + } + } + </style> +</head> + +<body> +<div> + <h1>Example Domain</h1> + <p>This domain is established to be used for illustrative examples in documents. You may use this + domain in examples without prior coordination or asking for permission.</p> + <p><a href="http://www.iana.org/domains/example">More information...</a></p> +</div> +</body> +</html>
diff --git a/quiche/quic/tools/quic_memory_cache_backend_test.cc b/quiche/quic/tools/quic_memory_cache_backend_test.cc index ce68de1..040f04b 100644 --- a/quiche/quic/tools/quic_memory_cache_backend_test.cc +++ b/quiche/quic/tools/quic_memory_cache_backend_test.cc
@@ -98,36 +98,6 @@ // TODO(crbug.com/1249712) This test is failing on iOS. #if defined(OS_IOS) -#define MAYBE_ReadsCacheDirWithServerPushResource \ - DISABLED_ReadsCacheDirWithServerPushResource -#else -#define MAYBE_ReadsCacheDirWithServerPushResource \ - ReadsCacheDirWithServerPushResource -#endif -TEST_F(QuicMemoryCacheBackendTest, MAYBE_ReadsCacheDirWithServerPushResource) { - cache_.InitializeBackend(CacheDirectory() + "_with_push"); - std::list<ServerPushInfo> resources = - cache_.GetServerPushResources("test.example.com/"); - ASSERT_EQ(1UL, resources.size()); -} - -// TODO(crbug.com/1249712) This test is failing on iOS. -#if defined(OS_IOS) -#define MAYBE_ReadsCacheDirWithServerPushResources \ - DISABLED_ReadsCacheDirWithServerPushResources -#else -#define MAYBE_ReadsCacheDirWithServerPushResources \ - ReadsCacheDirWithServerPushResources -#endif -TEST_F(QuicMemoryCacheBackendTest, MAYBE_ReadsCacheDirWithServerPushResources) { - cache_.InitializeBackend(CacheDirectory() + "_with_push"); - std::list<ServerPushInfo> resources = - cache_.GetServerPushResources("test.example.com/index2.html"); - ASSERT_EQ(2UL, resources.size()); -} - -// TODO(crbug.com/1249712) This test is failing on iOS. -#if defined(OS_IOS) #define MAYBE_UsesOriginalUrl DISABLED_UsesOriginalUrl #else #define MAYBE_UsesOriginalUrl UsesOriginalUrl