Index: chrome/browser/cocoa/infobar_controller_unittest.mm |
=================================================================== |
--- chrome/browser/cocoa/infobar_controller_unittest.mm (revision 65711) |
+++ chrome/browser/cocoa/infobar_controller_unittest.mm (working copy) |
@@ -30,10 +30,11 @@ |
@end |
-// Calls to removeDelegate: normally start an animation, which removes the |
-// infobar completely when finished. For unittesting purposes, we create a mock |
-// container which calls close: immediately, rather than kicking off an |
-// animation. |
+// Calls to removeDelegate: normally (a) start an animation, which removes the |
+// infobar completely when finished; and (b) synchronously close the delegate. |
+// For unittesting purposes, we create a mock container which calls close: |
+// immediately, rather than kicking off an animation; the delegate is still |
+// closed synchronously. |
@interface InfoBarContainerTest : NSObject <InfoBarContainer> { |
InfoBarController* controller_; |
} |
@@ -52,6 +53,7 @@ |
- (void)removeDelegate:(InfoBarDelegate*)delegate { |
[controller_ close]; |
+ delegate->InfoBarClosed(); |
} |
- (void)removeController:(InfoBarController*)controller { |