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

Unified Diff: ios/chrome/browser/ui/content_suggestions/content_suggestions_text_item_unittest.mm

Issue 2699393003: Cleanup ContentSuggestions, removing unused functions (Closed)
Patch Set: Rebase 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
Index: ios/chrome/browser/ui/content_suggestions/content_suggestions_text_item_unittest.mm
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_item_unittest.mm b/ios/chrome/browser/ui/content_suggestions/content_suggestions_text_item_unittest.mm
similarity index 62%
rename from ios/chrome/browser/ui/content_suggestions/content_suggestions_item_unittest.mm
rename to ios/chrome/browser/ui/content_suggestions/content_suggestions_text_item_unittest.mm
index dbac1dcb6101f28a4ccd61736756444ca9729d20..296d2c9a6ee0f77852b3036f40e817b1373d4ffb 100644
--- a/ios/chrome/browser/ui/content_suggestions/content_suggestions_item_unittest.mm
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_text_item_unittest.mm
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_item.h"
+#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_text_item.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -13,15 +13,15 @@
namespace {
// Tests that configureCell: set all the fields of the cell.
-TEST(ContentSuggestionsItemTest, CellIsConfigured) {
+TEST(ContentSuggestionsTextItemTest, CellIsConfigured) {
NSString* title = @"testTitle";
NSString* subtitle = @"testSubtitle";
- ContentSuggestionsItem* item =
- [[ContentSuggestionsItem alloc] initWithType:0
- title:title
- subtitle:subtitle];
- ContentSuggestionsCell* cell = [[[item cellClass] alloc] init];
- EXPECT_EQ([ContentSuggestionsCell class], [cell class]);
+ ContentSuggestionsTextItem* item =
+ [[ContentSuggestionsTextItem alloc] initWithType:0
+ title:title
+ subtitle:subtitle];
+ ContentSuggestionsTextCell* cell = [[[item cellClass] alloc] init];
+ EXPECT_EQ([ContentSuggestionsTextCell class], [cell class]);
[item configureCell:cell];
EXPECT_EQ(title, [cell.titleButton titleForState:UIControlStateNormal]);

Powered by Google App Engine
This is Rietveld 408576698