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

Side by Side Diff: ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_favicon_item_unittest.mm

Issue 2761753002: Cleanup ContentSuggestions cells (Closed)
Patch Set: Fix tests Created 3 years, 9 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 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_favicon_i tem.h" 5 #import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_fav icon_item.h"
6 6
7 #include "base/mac/foundation_util.h" 7 #include "base/mac/foundation_util.h"
8 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_favicon_i nternal_cell.h" 8 #import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_fav icon_internal_cell.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #import "third_party/ocmock/OCMock/OCMock.h" 10 #import "third_party/ocmock/OCMock/OCMock.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
16 namespace { 16 namespace {
17 17
18 ContentSuggestionsFaviconInternalCell* GetInnerCell( 18 ContentSuggestionsFaviconInternalCell* GetInnerCell(
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 ContentSuggestionsFaviconCell* cell = [[[item cellClass] alloc] init]; 86 ContentSuggestionsFaviconCell* cell = [[[item cellClass] alloc] init];
87 87
88 [item configureCell:cell]; 88 [item configureCell:cell];
89 89
90 EXPECT_EQ(0, 90 EXPECT_EQ(0,
91 [cell.collectionView.dataSource collectionView:cell.collectionView 91 [cell.collectionView.dataSource collectionView:cell.collectionView
92 numberOfItemsInSection:0]); 92 numberOfItemsInSection:0]);
93 } 93 }
94 94
95 } // namespace 95 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698