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

Unified Diff: trunk/src/chrome/browser/task_manager/task_manager_notification_browsertest.cc

Issue 14631021: Revert 199625 "Remove ENABLE_MESSAGE_CENTER" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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
Index: trunk/src/chrome/browser/task_manager/task_manager_notification_browsertest.cc
===================================================================
--- trunk/src/chrome/browser/task_manager/task_manager_notification_browsertest.cc (revision 199638)
+++ trunk/src/chrome/browser/task_manager/task_manager_notification_browsertest.cc (working copy)
@@ -19,8 +19,11 @@
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/common/content_switches.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/message_center/message_center_util.h"
+#if !defined(ENABLE_MESSAGE_CENTER)
+// These tests do not apply with Message Center platforms
+// where notifications do not instantiate a new renderer.
+
class TaskManagerNotificationBrowserTest : public ExtensionBrowserTest {
public:
TaskManagerModel* model() const {
@@ -45,11 +48,6 @@
#endif
IN_PROC_BROWSER_TEST_F(TaskManagerNotificationBrowserTest,
MAYBE_NoticeNotificationChanges) {
- // These tests do not apply with Message Center platforms
- // where notifications do not instantiate a new renderer.
- if (message_center::IsRichNotificationEnabled())
- return;
-
EXPECT_EQ(0, model()->ResourceCount());
// Show the task manager.
@@ -81,3 +79,5 @@
notifications->CancelById(n2.notification_id());
TaskManagerBrowserTestUtil::WaitForWebResourceChange(1);
}
+
+#endif // !ENABLE_MESSAGE_CENTER

Powered by Google App Engine
This is Rietveld 408576698