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

Unified Diff: components/image_fetcher/core/request_metadata_unittest.cc

Issue 2807143002: [Image fetcher] Add Content-Location header to image_fetcher::RequestMetadata (Closed)
Patch Set: Created 3 years, 8 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 | « components/image_fetcher/core/request_metadata.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/image_fetcher/core/request_metadata_unittest.cc
diff --git a/components/image_fetcher/core/request_metadata_unittest.cc b/components/image_fetcher/core/request_metadata_unittest.cc
index dcbe60c479286b87a3d17208720f7d194815de86..ea0d00f4e5cbf1da5ec5941188e09fd69e90f8bb 100644
--- a/components/image_fetcher/core/request_metadata_unittest.cc
+++ b/components/image_fetcher/core/request_metadata_unittest.cc
@@ -19,6 +19,8 @@ TEST(RequestMetadataTest, Equality) {
lhs.http_response_code = 1;
rhs.from_http_cache = true;
lhs.from_http_cache = true;
+ lhs.content_location_header = "http://test-location.com/image.png";
+ rhs.content_location_header = "http://test-location.com/image.png";
EXPECT_EQ(rhs, lhs);
}
@@ -32,6 +34,8 @@ TEST(RequestMetadataTest, NoEquality) {
lhs.http_response_code = 1;
rhs.from_http_cache = true;
lhs.from_http_cache = true;
+ lhs.content_location_header = "http://test-location.com/image.png";
+ rhs.content_location_header = "http://test-location.com/image.png";
lhs.mime_type = "testOtherMimeType";
EXPECT_NE(rhs, lhs);
@@ -44,6 +48,10 @@ TEST(RequestMetadataTest, NoEquality) {
lhs.from_http_cache = false;
EXPECT_NE(rhs, lhs);
lhs.from_http_cache = true;
+
+ lhs.content_location_header = "http://other.test-location.com/image.png";
+ EXPECT_NE(rhs, lhs);
+ lhs.content_location_header = "http://test-location.com/image.png";
}
} // namespace image_fetcher
« no previous file with comments | « components/image_fetcher/core/request_metadata.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698