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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_overlay_controller_unittest.mm

Issue 82933002: [rAc OSX] Simplify the overlay controller. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update unit tests Created 7 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/cocoa/autofill/autofill_overlay_controller.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/autofill/autofill_overlay_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_overlay_controller_unittest.mm b/chrome/browser/ui/cocoa/autofill/autofill_overlay_controller_unittest.mm
index 1cbd77065ab499d23664d2a56d5a7375c886279f..b71ec0458d5743afe338fbf87c776d41f69b4c39 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_overlay_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_overlay_controller_unittest.mm
@@ -33,9 +33,14 @@ TEST_VIEW(AutofillOverlayControllerTest, [controller_ view])
TEST_F(AutofillOverlayControllerTest, Subviews) {
NSView* view = [controller_ view];
- ASSERT_EQ(1U, [[view subviews] count]);
-
EXPECT_TRUE([view isKindOfClass:[NSBox class]]);
- EXPECT_TRUE([[[view subviews] objectAtIndex:0] isMemberOfClass:
- [NSView class]]);
+
+ ASSERT_EQ(2U, [[view subviews] count]);
+ EXPECT_TRUE(
+ [[[view subviews] objectAtIndex:0] isKindOfClass:[NSView class]]);
+ EXPECT_TRUE(
+ [[[view subviews] objectAtIndex:0] conformsToProtocol:
+ @protocol(AutofillLayout)]);
+ EXPECT_TRUE(
+ [[[view subviews] objectAtIndex:1] isMemberOfClass:[NSImageView class]]);
}
« no previous file with comments | « chrome/browser/ui/cocoa/autofill/autofill_overlay_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698