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

Unified Diff: ash/wm/screen_pinning_controller_unittest.cc

Issue 2780943002: Enables ScreenPinningController for mash/mus (Closed)
Patch Set: local Created 3 years, 9 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/wm/screen_pinning_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/screen_pinning_controller_unittest.cc
diff --git a/ash/wm/screen_pinning_controller_unittest.cc b/ash/wm/screen_pinning_controller_unittest.cc
index 9c613b07ed178b1cd0e3e7422fded8298bf82ccc..96ebbec2ece437e873d3870cd62bc952f9b53005 100644
--- a/ash/wm/screen_pinning_controller_unittest.cc
+++ b/ash/wm/screen_pinning_controller_unittest.cc
@@ -13,6 +13,7 @@
#include "ash/common/wm_window.h"
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
+#include "ash/wm/screen_pinning_controller.h"
#include "ash/wm/window_util.h"
#include "base/stl_util.h"
#include "ui/aura/window.h"
@@ -35,7 +36,7 @@ TEST_F(ScreenPinningControllerTest, IsPinned) {
wm::ActivateWindow(w1);
wm::PinWindow(w1, /* trusted */ false);
- EXPECT_TRUE(WmShell::Get()->IsPinned());
+ EXPECT_TRUE(Shell::Get()->screen_pinning_controller()->IsPinned());
}
TEST_F(ScreenPinningControllerTest, OnlyOnePinnedWindow) {
@@ -158,12 +159,12 @@ TEST_F(ScreenPinningControllerTest, TrustedPinnedWithAccelerator) {
wm::ActivateWindow(w1);
wm::PinWindow(w1, /* trusted */ true);
- EXPECT_TRUE(WmShell::Get()->IsPinned());
+ EXPECT_TRUE(Shell::Get()->screen_pinning_controller()->IsPinned());
Shell::Get()->accelerator_controller()->PerformActionIfEnabled(UNPIN);
// The UNPIN accelerator key is disabled for trusted pinned and the window
// must be still pinned.
- EXPECT_TRUE(WmShell::Get()->IsPinned());
+ EXPECT_TRUE(Shell::Get()->screen_pinning_controller()->IsPinned());
}
} // namespace ash
« no previous file with comments | « ash/wm/screen_pinning_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698