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

Unified Diff: ash/system/web_notification/web_notification_tray_unittest.cc

Issue 2075953003: mash: Convert WebNotificationTray to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@statusarea
Patch Set: rebase Created 4 years, 6 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: ash/system/web_notification/web_notification_tray_unittest.cc
diff --git a/ash/system/web_notification/web_notification_tray_unittest.cc b/ash/system/web_notification/web_notification_tray_unittest.cc
index 975222d5628fef3d71fa4bc1288e520c862eb25e..3a8e52ba87c109176dd2c9118f5a5fb6ac4c2287 100644
--- a/ash/system/web_notification/web_notification_tray_unittest.cc
+++ b/ash/system/web_notification/web_notification_tray_unittest.cc
@@ -15,7 +15,6 @@
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/display/display_manager.h"
-#include "ash/root_window_controller.h"
#include "ash/shelf/shelf_layout_manager.h"
#include "ash/shell.h"
#include "ash/system/status_area_widget.h"
@@ -449,7 +448,7 @@ TEST_F(WebNotificationTrayTest, MAYBE_PopupAndFullscreen) {
EXPECT_EQ(bottom_auto_hidden, bottom_fullscreen_hidden);
// Move the mouse cursor at the bottom, which shows the shelf.
- ui::test::EventGenerator generator(Shell::GetPrimaryRootWindow());
+ ui::test::EventGenerator& generator = GetEventGenerator();
gfx::Point bottom_right =
display::Screen::GetScreen()->GetPrimaryDisplay().bounds().bottom_right();
bottom_right.Offset(-1, -1);
@@ -490,7 +489,7 @@ TEST_F(WebNotificationTrayTest, TouchFeedback) {
WebNotificationTray* tray = GetTray();
EXPECT_TRUE(tray->visible());
- ui::test::EventGenerator generator(Shell::GetPrimaryRootWindow());
+ ui::test::EventGenerator& generator = GetEventGenerator();
const int touch_id = 0;
gfx::Point center_point = tray->GetBoundsInScreen().CenterPoint();
@@ -518,7 +517,7 @@ TEST_F(WebNotificationTrayTest, TouchFeedbackCancellation) {
WebNotificationTray* tray = GetTray();
EXPECT_TRUE(tray->visible());
- ui::test::EventGenerator generator(Shell::GetPrimaryRootWindow());
+ ui::test::EventGenerator& generator = GetEventGenerator();
const int touch_id = 0;
gfx::Rect bounds = tray->GetBoundsInScreen();
gfx::Point center_point = bounds.CenterPoint();
« no previous file with comments | « ash/system/web_notification/web_notification_tray.cc ('k') | chrome/browser/ui/views/message_center/web_notification_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698