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

Unified Diff: chrome/browser/notifications/sync_notifier/synced_notification_unittest.cc

Issue 231723006: Remove balloon notification code. The last user was the Linux GTK port but that's deleted now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync after elliot's r263101 Created 6 years, 8 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
Index: chrome/browser/notifications/sync_notifier/synced_notification_unittest.cc
===================================================================
--- chrome/browser/notifications/sync_notifier/synced_notification_unittest.cc (revision 263121)
+++ chrome/browser/notifications/sync_notifier/synced_notification_unittest.cc (working copy)
@@ -29,10 +29,6 @@
const int kNotificationPriority = static_cast<int>(
message_center::LOW_PRIORITY);
-bool UseRichNotifications() {
- return message_center::IsRichNotificationEnabled();
-}
-
} // namespace
namespace notifier {
@@ -257,10 +253,6 @@
}
TEST_F(SyncedNotificationTest, ShowTest) {
-
- if (!UseRichNotifications())
- return;
-
// Call the method under test using the pre-populated data.
notification1_->Show(NULL);
@@ -279,9 +271,6 @@
TEST_F(SyncedNotificationTest, DismissTest) {
- if (!UseRichNotifications())
- return;
-
// Call the method under test using a dismissed notification.
notification4_->Show(NULL);
@@ -304,9 +293,6 @@
}
TEST_F(SyncedNotificationTest, OnFetchCompleteTest) {
- if (!UseRichNotifications())
- return;
-
// Set up the internal state that FetchBitmaps() would have set.
notification1_->notification_manager_ = notification_manager();
@@ -357,9 +343,6 @@
// TODO(petewil): Empty bitmap should count as a successful fetch.
TEST_F(SyncedNotificationTest, EmptyBitmapTest) {
- if (!UseRichNotifications())
- return;
-
// Set up the internal state that FetchBitmaps() would have set.
notification1_->notification_manager_ = notification_manager();
@@ -406,9 +389,6 @@
}
TEST_F(SyncedNotificationTest, ShowIfNewlyEnabledTest) {
- if (!UseRichNotifications())
- return;
-
// Call the method using the wrong app id, nothing should get shown.
notification1_->ShowAllForAppId(NULL, kAppId2);
@@ -433,9 +413,6 @@
}
TEST_F(SyncedNotificationTest, HideIfNewlyRemovedTest) {
- if (!UseRichNotifications())
- return;
-
// Add the notification to the notification manger, so it exists before we
// we remove it.
notification1_->Show(NULL);

Powered by Google App Engine
This is Rietveld 408576698