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

Unified Diff: ash/shelf/shelf_window_watcher_unittest.cc

Issue 2808723004: Renames WmShell to ShellPort (Closed)
Patch Set: feedback Created 3 years, 8 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/shelf/shelf_window_watcher_unittest.cc
diff --git a/ash/shelf/shelf_window_watcher_unittest.cc b/ash/shelf/shelf_window_watcher_unittest.cc
index 1e156da3eea00d1f771e8b6a2c9b7efb4cd0ed6f..1d5ad61aafe52350f494d836d9e8bb889461276d 100644
--- a/ash/shelf/shelf_window_watcher_unittest.cc
+++ b/ash/shelf/shelf_window_watcher_unittest.cc
@@ -11,10 +11,10 @@
#include "ash/session/session_controller.h"
#include "ash/shelf/shelf_model.h"
#include "ash/shell.h"
+#include "ash/shell_port.h"
#include "ash/test/ash_test_base.h"
#include "ash/wm/window_resizer.h"
#include "ash/wm/window_state.h"
-#include "ash/wm_shell.h"
#include "ash/wm_window.h"
#include "ui/aura/window.h"
#include "ui/base/hit_test.h"
@@ -75,7 +75,7 @@ TEST_F(ShelfWindowWatcherTest, OpenAndClose) {
TEST_F(ShelfWindowWatcherTest, CreateAndRemoveShelfItemProperties) {
// TODO: investigate failure in mash. http://crbug.com/695562.
- if (WmShell::Get()->IsRunningInMash())
+ if (ShellPort::Get()->IsRunningInMash())
return;
// ShelfModel only has an APP_LIST item.
@@ -119,7 +119,7 @@ TEST_F(ShelfWindowWatcherTest, CreateAndRemoveShelfItemProperties) {
TEST_F(ShelfWindowWatcherTest, ActivateWindow) {
// TODO: investigate failure in mash. http://crbug.com/695562.
- if (WmShell::Get()->IsRunningInMash())
+ if (ShellPort::Get()->IsRunningInMash())
return;
// ShelfModel only have APP_LIST item.
@@ -157,7 +157,7 @@ TEST_F(ShelfWindowWatcherTest, ActivateWindow) {
TEST_F(ShelfWindowWatcherTest, UpdateWindowProperty) {
// TODO: investigate failure in mash. http://crbug.com/695562.
- if (WmShell::Get()->IsRunningInMash())
+ if (ShellPort::Get()->IsRunningInMash())
return;
// ShelfModel only has an APP_LIST item.
@@ -186,7 +186,7 @@ TEST_F(ShelfWindowWatcherTest, UpdateWindowProperty) {
TEST_F(ShelfWindowWatcherTest, MaximizeAndRestoreWindow) {
// TODO: investigate failure in mash. http://crbug.com/695562.
- if (WmShell::Get()->IsRunningInMash())
+ if (ShellPort::Get()->IsRunningInMash())
return;
// ShelfModel only has an APP_LIST item.
@@ -228,7 +228,7 @@ TEST_F(ShelfWindowWatcherTest, MaximizeAndRestoreWindow) {
// TODO(simonhong): Add a test for removing a Window during the dragging.
TEST_F(ShelfWindowWatcherTest, DragWindow) {
// TODO: investigate failure in mash. http://crbug.com/695562.
- if (WmShell::Get()->IsRunningInMash())
+ if (ShellPort::Get()->IsRunningInMash())
return;
// ShelfModel only has an APP_LIST item.
@@ -260,7 +260,7 @@ TEST_F(ShelfWindowWatcherTest, DragWindow) {
// Ensure shelf items are added and removed as panels are opened and closed.
TEST_F(ShelfWindowWatcherTest, PanelWindow) {
// TODO: investigate failure in mash. http://crbug.com/695562.
- if (WmShell::Get()->IsRunningInMash())
+ if (ShellPort::Get()->IsRunningInMash())
return;
// ShelfModel only has an APP_LIST item.
@@ -284,7 +284,7 @@ TEST_F(ShelfWindowWatcherTest, PanelWindow) {
views::Widget panel_widget;
views::Widget::InitParams panel_params(views::Widget::InitParams::TYPE_PANEL);
panel_params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET;
- WmShell::Get()
+ ShellPort::Get()
->GetPrimaryRootWindow()
->GetRootWindowController()
->ConfigureWidgetInitParamsForContainer(

Powered by Google App Engine
This is Rietveld 408576698