diff options
Diffstat (limited to 'ui/message_center/cocoa/popup_collection_unittest.mm')
-rw-r--r-- | ui/message_center/cocoa/popup_collection_unittest.mm | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ui/message_center/cocoa/popup_collection_unittest.mm b/ui/message_center/cocoa/popup_collection_unittest.mm index c7f4014..fada0ef 100644 --- a/ui/message_center/cocoa/popup_collection_unittest.mm +++ b/ui/message_center/cocoa/popup_collection_unittest.mm @@ -33,7 +33,8 @@ class PopupCollectionTest : public ui::CocoaTest { [[MCPopupCollection alloc] initWithMessageCenter:center_]); [collection_ setAnimationDuration:0.001]; [collection_ setAnimationEndedCallback:^{ - OnAnimationEnded(); + if (nested_run_loop_.get()) + nested_run_loop_->Quit(); }]; } @@ -107,11 +108,6 @@ class PopupCollectionTest : public ui::CocoaTest { nested_run_loop_.reset(); } - void OnAnimationEnded() { - if (nested_run_loop_.get()) - nested_run_loop_->Quit(); - } - base::MessageLoop message_loop_; scoped_ptr<base::RunLoop> nested_run_loop_; message_center::MessageCenter* center_; |