OLD | NEW |
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 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_article_i
tem.h" | 5 #import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_art
icle_item.h" |
6 | 6 |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 #import "third_party/ocmock/OCMock/OCMock.h" | 8 #import "third_party/ocmock/OCMock/OCMock.h" |
9 #import "third_party/ocmock/gtest_support.h" | 9 #import "third_party/ocmock/gtest_support.h" |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
11 | 11 |
12 #if !defined(__has_feature) || !__has_feature(objc_arc) | 12 #if !defined(__has_feature) || !__has_feature(objc_arc) |
13 #error "This file requires ARC support." | 13 #error "This file requires ARC support." |
14 #endif | 14 #endif |
15 | 15 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // Action. | 75 // Action. |
76 [item configureCell:cell]; | 76 [item configureCell:cell]; |
77 | 77 |
78 // Tests. | 78 // Tests. |
79 EXPECT_EQ(item.image, cell.imageView.image); | 79 EXPECT_EQ(item.image, cell.imageView.image); |
80 EXPECT_EQ(title, cell.titleLabel.text); | 80 EXPECT_EQ(title, cell.titleLabel.text); |
81 EXPECT_EQ(subtitle, cell.subtitleLabel.text); | 81 EXPECT_EQ(subtitle, cell.subtitleLabel.text); |
82 } | 82 } |
83 | 83 |
84 } // namespace | 84 } // namespace |
OLD | NEW |