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

Unified Diff: chrome/browser/notifications/message_center_notifications_browsertest.cc

Issue 604453002: Remove unused code from MessageCenterNotificationManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test remove Created 6 years, 3 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 | « chrome/browser/notifications/message_center_notification_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/message_center_notifications_browsertest.cc
diff --git a/chrome/browser/notifications/message_center_notifications_browsertest.cc b/chrome/browser/notifications/message_center_notifications_browsertest.cc
index 40a3b49ddb953f98ff778163ea609c3f1cd04926..237d62e5ef8ca94617fc19ac6413b7326aa37e02 100644
--- a/chrome/browser/notifications/message_center_notifications_browsertest.cc
+++ b/chrome/browser/notifications/message_center_notifications_browsertest.cc
@@ -11,7 +11,6 @@
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
-#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/notifications/message_center_notification_manager.h"
#include "chrome/browser/notifications/notification.h"
#include "chrome/browser/notifications/notification_ui_manager.h"
@@ -19,9 +18,6 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/test_switches.h"
-#include "content/public/browser/notification_details.h"
-#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/notification_source.h"
#include "ui/message_center/message_center.h"
#include "ui/message_center/message_center_types.h"
@@ -345,27 +341,4 @@ IN_PROC_BROWSER_TEST_F(MessageCenterNotificationsTest,
delegate->Release();
}
-#if !defined(OS_CHROMEOS)
-#define MAYBE_HideWhenFullscreenEnabled HideWhenFullscreenEnabled
-#else
-#define MAYBE_HideWhenFullscreenEnabled DISABLED_HideWhenFullscreenEnabled
-#endif
-
-IN_PROC_BROWSER_TEST_F(MessageCenterNotificationsTest,
- MAYBE_HideWhenFullscreenEnabled) {
- TestDelegate* delegate;
- manager()->Add(CreateTestNotification("n", &delegate), profile());
-
- EXPECT_EQ("Display_", delegate->log());
- EXPECT_TRUE(message_center()->HasPopupNotifications());
- bool is_fullscreen = true;
- // Cast so that Observe() is public.
- content::NotificationObserver* observer =
- static_cast<content::NotificationObserver*>(manager());
- observer->Observe(chrome::NOTIFICATION_FULLSCREEN_CHANGED,
- content::Source<Profile>(profile()),
- content::Details<bool>(&is_fullscreen));
- EXPECT_FALSE(message_center()->HasPopupNotifications());
-}
-
#endif // !defined(OS_MACOSX)
« no previous file with comments | « chrome/browser/notifications/message_center_notification_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698