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

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

Issue 8771057: aura/cc: Fix DesktopNotificationsTest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years 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/desktop_notifications_unittest.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/desktop_notifications_unittest.cc
diff --git a/chrome/browser/notifications/desktop_notifications_unittest.cc b/chrome/browser/notifications/desktop_notifications_unittest.cc
index d2b5b2f3e96507975e2f0378c7aa9405627b8fed..ee54d05a1f3d3dee6f4f88a40428a78952951f20 100644
--- a/chrome/browser/notifications/desktop_notifications_unittest.cc
+++ b/chrome/browser/notifications/desktop_notifications_unittest.cc
@@ -12,6 +12,9 @@
#include "content/public/common/show_desktop_notification_params.h"
#if defined(USE_AURA)
+#if defined(USE_WEBKIT_COMPOSITOR)
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
+#endif
#include "ui/aura/root_window.h"
#endif
@@ -89,6 +92,9 @@ DesktopNotificationsTest::~DesktopNotificationsTest() {
void DesktopNotificationsTest::SetUp() {
#if defined(USE_AURA)
+#if defined(USE_WEBKIT_COMPOSITOR)
+ WebKit::initialize(&webkit_platform_support_);
+#endif
// MockBalloonCollection retrieves information about the screen on creation.
// So it is necessary to make sure the desktop gets created first.
aura::RootWindow::GetInstance();
@@ -107,6 +113,12 @@ void DesktopNotificationsTest::TearDown() {
service_.reset(NULL);
ui_manager_.reset(NULL);
profile_.reset(NULL);
+#if defined(USE_AURA)
+ aura::RootWindow::DeleteInstance();
+#if defined(USE_WEBKIT_COMPOSITOR)
+ WebKit::shutdown();
+#endif
+#endif
}
content::ShowDesktopNotificationHostMsgParams
« no previous file with comments | « chrome/browser/notifications/desktop_notifications_unittest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698