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

Unified Diff: ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_item_unittest.mm

Issue 2887433002: Move the ContentSuggestions items to a new target (Closed)
Patch Set: Created 3 years, 7 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/cells/content_suggestions_item_unittest.mm
diff --git a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_item_unittest.mm b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_item_unittest.mm
index 807db2fb666b46a26f961477db0093df81d2d33e..5f6883273b6f7773f39b2c900152990d7aeea291 100644
--- a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_item_unittest.mm
+++ b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_item_unittest.mm
@@ -5,6 +5,7 @@
#import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_item.h"
#include "base/time/time.h"
+#import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_cell.h"
#include "testing/gtest/include/gtest/gtest.h"
#import "third_party/ocmock/OCMock/OCMock.h"
#import "third_party/ocmock/gtest_support.h"
@@ -25,6 +26,7 @@ TEST(ContentSuggestionsItemTest, CellIsConfiguredWithoutImage) {
GURL url = GURL("http://chromium.org");
NSString* publisher = @"publisherName";
base::Time publishTime = base::Time::Now();
+ NSDate* date = [NSDate dateWithTimeIntervalSince1970:publishTime.ToDoubleT()];
id delegateMock = OCMProtocolMock(@protocol(SuggestedContentDelegate));
ContentSuggestionsItem* item =
[[ContentSuggestionsItem alloc] initWithType:0
@@ -45,7 +47,7 @@ TEST(ContentSuggestionsItemTest, CellIsConfiguredWithoutImage) {
OCMExpect([cellMock setContentImage:item.image]);
OCMExpect([cellMock setSubtitleText:subtitle]);
OCMExpect([cellMock setAdditionalInformationWithPublisherName:publisher
- date:publishTime
+ date:date
offlineAvailability:YES]);
// Action.

Powered by Google App Engine
This is Rietveld 408576698