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

Unified Diff: components/image_fetcher/request_metadata_unittest.cc

Issue 2677993002: Use IOSImageDataFetcherWrapper for favicon (Closed)
Patch Set: Actually adding the header 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 | « components/image_fetcher/request_metadata.cc ('k') | ios/web/public/test/fakes/test_web_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/image_fetcher/request_metadata_unittest.cc
diff --git a/components/image_fetcher/request_metadata_unittest.cc b/components/image_fetcher/request_metadata_unittest.cc
index 4855dbf1974c0961283ca74a4280f1e078c01605..ba87ba08d8f400109c3ded47e2f8cb3f14696f65 100644
--- a/components/image_fetcher/request_metadata_unittest.cc
+++ b/components/image_fetcher/request_metadata_unittest.cc
@@ -13,6 +13,8 @@ TEST(RequestMetadataTest, Equality) {
RequestMetadata lhs;
rhs.mime_type = "testMimeType";
lhs.mime_type = "testMimeType";
+ rhs.response_code = 1;
+ lhs.response_code = 1;
EXPECT_EQ(rhs, lhs);
}
@@ -21,9 +23,17 @@ TEST(RequestMetadataTest, NoEquality) {
RequestMetadata rhs;
RequestMetadata lhs;
rhs.mime_type = "testMimeType";
+ lhs.mime_type = "testMimeType";
+ rhs.response_code = 1;
+ lhs.response_code = 1;
+
lhs.mime_type = "testOtherMimeType";
+ EXPECT_NE(rhs, lhs);
+ lhs.mime_type = "testMimeType";
+ lhs.response_code = 2;
EXPECT_NE(rhs, lhs);
+ lhs.response_code = 1;
}
} // namespace image_fetcher
« no previous file with comments | « components/image_fetcher/request_metadata.cc ('k') | ios/web/public/test/fakes/test_web_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698