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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/image_fetcher/request_metadata.h" 5 #include "components/image_fetcher/request_metadata.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace image_fetcher { 9 namespace image_fetcher {
10 10
11 TEST(RequestMetadataTest, Equality) { 11 TEST(RequestMetadataTest, Equality) {
12 RequestMetadata rhs; 12 RequestMetadata rhs;
13 RequestMetadata lhs; 13 RequestMetadata lhs;
14 rhs.mime_type = "testMimeType"; 14 rhs.mime_type = "testMimeType";
15 lhs.mime_type = "testMimeType"; 15 lhs.mime_type = "testMimeType";
16 rhs.response_code = 1;
17 lhs.response_code = 1;
16 18
17 EXPECT_EQ(rhs, lhs); 19 EXPECT_EQ(rhs, lhs);
18 } 20 }
19 21
20 TEST(RequestMetadataTest, NoEquality) { 22 TEST(RequestMetadataTest, NoEquality) {
21 RequestMetadata rhs; 23 RequestMetadata rhs;
22 RequestMetadata lhs; 24 RequestMetadata lhs;
23 rhs.mime_type = "testMimeType"; 25 rhs.mime_type = "testMimeType";
26 lhs.mime_type = "testMimeType";
27 rhs.response_code = 1;
28 lhs.response_code = 1;
29
24 lhs.mime_type = "testOtherMimeType"; 30 lhs.mime_type = "testOtherMimeType";
31 EXPECT_NE(rhs, lhs);
32 lhs.mime_type = "testMimeType";
25 33
34 lhs.response_code = 2;
26 EXPECT_NE(rhs, lhs); 35 EXPECT_NE(rhs, lhs);
36 lhs.response_code = 1;
27 } 37 }
28 38
29 } // namespace image_fetcher 39 } // namespace image_fetcher
OLDNEW
« 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