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

Unified Diff: ash/shelf/shelf_view_unittest.cc

Issue 2726823003: Remove WmLookup. (Closed)
Patch Set: Clean up include and modify comment. Created 3 years, 10 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 | « ash/screen_util_unittest.cc ('k') | ash/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_view_unittest.cc
diff --git a/ash/shelf/shelf_view_unittest.cc b/ash/shelf/shelf_view_unittest.cc
index 38108956d99cb9ff596c64cf21e516711cad5ba9..a4d70724921a53e4bbb862d24affbbe9e6b856d3 100644
--- a/ash/shelf/shelf_view_unittest.cc
+++ b/ash/shelf/shelf_view_unittest.cc
@@ -24,7 +24,6 @@
#include "ash/common/test/test_shelf_delegate.h"
#include "ash/common/test/test_shelf_item_delegate.h"
#include "ash/common/test/test_system_tray_delegate.h"
-#include "ash/common/wm_lookup.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/public/cpp/shell_window_ids.h"
@@ -182,7 +181,7 @@ TEST_F(WmShelfObserverIconTest, AddRemove) {
widget.Init(params);
TestShelfDelegate::instance()->AddShelfItem(
- WmLookup::Get()->GetWindowForWidget(&widget));
+ WmWindow::Get(widget.GetNativeWindow()));
shelf_view_test()->RunMessageLoopUntilAnimationsDone();
EXPECT_TRUE(observer()->icon_positions_changed());
observer()->Reset();
@@ -214,7 +213,7 @@ TEST_F(WmShelfObserverIconTest, AddRemoveWithMultipleDisplays) {
widget.Init(params);
TestShelfDelegate::instance()->AddShelfItem(
- WmLookup::Get()->GetWindowForWidget(&widget));
+ WmWindow::Get(widget.GetNativeWindow()));
shelf_view_test()->RunMessageLoopUntilAnimationsDone();
EXPECT_TRUE(observer()->icon_positions_changed());
EXPECT_TRUE(second_observer.icon_positions_changed());
« no previous file with comments | « ash/screen_util_unittest.cc ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698