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

Unified Diff: ui/message_center/cocoa/tray_view_controller_unittest.mm

Issue 288033014: Remove Notifications Associated with an Extension When the Extension is Unchecked from the Message … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Unit Test That Left Dangling Pointer Created 6 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
« no previous file with comments | « ui/message_center/cocoa/settings_controller.mm ('k') | ui/message_center/message_center_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/cocoa/tray_view_controller_unittest.mm
diff --git a/ui/message_center/cocoa/tray_view_controller_unittest.mm b/ui/message_center/cocoa/tray_view_controller_unittest.mm
index 156f7199fe053ff930e4b37c9720ea41060354ba..9496177bd3ba417e342be7d234204247bd8aaba4 100644
--- a/ui/message_center/cocoa/tray_view_controller_unittest.mm
+++ b/ui/message_center/cocoa/tray_view_controller_unittest.mm
@@ -248,6 +248,9 @@ TEST_F(TrayViewControllerTest, Settings) {
// The tray should be back at its previous height now.
EXPECT_EQ(trayHeight, NSHeight([[tray_ view] frame]));
+
+ // Clean up since this frame owns FakeNotifierSettingsProvider.
+ center_->SetNotifierSettingsProvider(NULL);
}
TEST_F(TrayViewControllerTest, EmptyCenter) {
« no previous file with comments | « ui/message_center/cocoa/settings_controller.mm ('k') | ui/message_center/message_center_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698