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

Unified Diff: net/tools/quic/quic_http_response_cache_test.cc

Issue 2692943003: Rename www.example.com -> test.example.com for push resource (Closed)
Patch Set: rename the normal response cache directory as well Created 3 years, 10 months 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/data/quic_http_response_cache_data_with_push/www.example.com/kitten-1.jpg ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_http_response_cache_test.cc
diff --git a/net/tools/quic/quic_http_response_cache_test.cc b/net/tools/quic/quic_http_response_cache_test.cc
index c0f5347f5c76a93058708b311b0d4069c3312e9b..ab9c38c06a78e8522703fa7071c340e0cbbc1d18 100644
--- a/net/tools/quic/quic_http_response_cache_test.cc
+++ b/net/tools/quic/quic_http_response_cache_test.cc
@@ -96,7 +96,7 @@ TEST_F(QuicHttpResponseCacheTest, AddResponse) {
TEST_F(QuicHttpResponseCacheTest, ReadsCacheDir) {
cache_.InitializeFromDirectory(CacheDirectory());
const QuicHttpResponseCache::Response* response =
- cache_.GetResponse("www.example.com", "/index.html");
+ cache_.GetResponse("test.example.com", "/index.html");
ASSERT_TRUE(response);
ASSERT_TRUE(QuicContainsKey(response->headers(), ":status"));
EXPECT_EQ("200", response->headers().find(":status")->second);
@@ -108,21 +108,21 @@ TEST_F(QuicHttpResponseCacheTest, ReadsCacheDir) {
TEST_F(QuicHttpResponseCacheTest, ReadsCacheDirWithServerPushResource) {
cache_.InitializeFromDirectory(CacheDirectory() + "_with_push");
std::list<ServerPushInfo> resources =
- cache_.GetServerPushResources("www.example.com/");
+ cache_.GetServerPushResources("test.example.com/");
ASSERT_EQ(1UL, resources.size());
}
TEST_F(QuicHttpResponseCacheTest, ReadsCacheDirWithServerPushResources) {
cache_.InitializeFromDirectory(CacheDirectory() + "_with_push");
std::list<ServerPushInfo> resources =
- cache_.GetServerPushResources("www.example.com/index2.html");
+ cache_.GetServerPushResources("test.example.com/index2.html");
ASSERT_EQ(2UL, resources.size());
}
TEST_F(QuicHttpResponseCacheTest, UsesOriginalUrl) {
cache_.InitializeFromDirectory(CacheDirectory());
const QuicHttpResponseCache::Response* response =
- cache_.GetResponse("www.example.com", "/site_map.html");
+ cache_.GetResponse("test.example.com", "/site_map.html");
ASSERT_TRUE(response);
ASSERT_TRUE(QuicContainsKey(response->headers(), ":status"));
EXPECT_EQ("200", response->headers().find(":status")->second);
« no previous file with comments | « net/data/quic_http_response_cache_data_with_push/www.example.com/kitten-1.jpg ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698