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

Unified Diff: ios/chrome/browser/payments/cells/payment_method_item_unittest.mm

Issue 2814793003: Adds accessoryType property to CollectionViewItem (Closed)
Patch Set: Created 3 years, 8 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/payments/cells/payment_method_item_unittest.mm
diff --git a/ios/chrome/browser/payments/cells/payment_method_item_unittest.mm b/ios/chrome/browser/payments/cells/payment_method_item_unittest.mm
index c2ed3b56eb9f7cae7523bd6c4e449f9b34a2c5b5..2c0d236455ba666add311f1f0dcf7a8d716ca836 100644
--- a/ios/chrome/browser/payments/cells/payment_method_item_unittest.mm
+++ b/ios/chrome/browser/payments/cells/payment_method_item_unittest.mm
@@ -24,15 +24,12 @@ TEST(PaymentRequestPaymentMethodItemTest, TextLabels) {
NSString* methodAddress = @"123 Bob St, Halifax, NS";
NSString* notification = @"More information is required.";
UIImage* methodTypeIcon = ios_internal::CollectionViewTestImage();
- MDCCollectionViewCellAccessoryType accessoryType =
- MDCCollectionViewCellAccessoryDisclosureIndicator;
item.methodID = methodID;
item.methodDetail = methodDetail;
item.methodAddress = methodAddress;
item.notification = notification;
item.methodTypeIcon = methodTypeIcon;
- item.accessoryType = accessoryType;
id cell = [[[item cellClass] alloc] init];
ASSERT_TRUE([cell isMemberOfClass:[PaymentMethodCell class]]);
@@ -43,8 +40,6 @@ TEST(PaymentRequestPaymentMethodItemTest, TextLabels) {
EXPECT_FALSE(paymentMethodCell.methodAddressLabel.text);
EXPECT_FALSE(paymentMethodCell.notificationLabel.text);
EXPECT_EQ(nil, paymentMethodCell.methodTypeIconView.image);
- EXPECT_EQ(paymentMethodCell.accessoryType,
- MDCCollectionViewCellAccessoryNone);
[item configureCell:paymentMethodCell];
EXPECT_NSEQ(methodID, paymentMethodCell.methodIDLabel.text);
@@ -52,8 +47,6 @@ TEST(PaymentRequestPaymentMethodItemTest, TextLabels) {
EXPECT_NSEQ(methodAddress, paymentMethodCell.methodAddressLabel.text);
EXPECT_NSEQ(notification, paymentMethodCell.notificationLabel.text);
EXPECT_NSEQ(methodTypeIcon, paymentMethodCell.methodTypeIconView.image);
- EXPECT_EQ(paymentMethodCell.accessoryType,
- MDCCollectionViewCellAccessoryDisclosureIndicator);
}
} // namespace
« no previous file with comments | « ios/chrome/browser/payments/cells/payment_method_item.mm ('k') | ios/chrome/browser/payments/cells/price_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698