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

Unified Diff: ash/common/shelf/shelf_window_watcher_unittest.cc

Issue 2761373002: Move yet more from WmShell to Shell (Closed)
Patch Set: merge 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/common/shelf/shelf_window_watcher_item_delegate.cc ('k') | ash/common/shelf/wm_shelf.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_window_watcher_unittest.cc
diff --git a/ash/common/shelf/shelf_window_watcher_unittest.cc b/ash/common/shelf/shelf_window_watcher_unittest.cc
index 7e5ed90cb248516043d79177634c895c207df6d5..59f5ba19c689137e756e116abdf4d1b05313962f 100644
--- a/ash/common/shelf/shelf_window_watcher_unittest.cc
+++ b/ash/common/shelf/shelf_window_watcher_unittest.cc
@@ -29,7 +29,7 @@ class ShelfWindowWatcherTest : public test::AshTestBase {
void SetUp() override {
test::AshTestBase::SetUp();
- model_ = WmShell::Get()->shelf_model();
+ model_ = Shell::Get()->shelf_model();
}
void TearDown() override {
@@ -38,7 +38,7 @@ class ShelfWindowWatcherTest : public test::AshTestBase {
}
static ShelfID CreateShelfItem(WmWindow* window) {
- ShelfID id = WmShell::Get()->shelf_model()->next_id();
+ ShelfID id = Shell::Get()->shelf_model()->next_id();
window->aura_window()->SetProperty(kShelfItemTypeKey,
static_cast<int32_t>(TYPE_DIALOG));
return id;
@@ -335,9 +335,9 @@ TEST_F(ShelfWindowWatcherTest, DontCreateShelfEntriesForChildWindows) {
// Ensures ShelfWindowWatcher supports windows opened prior to session start.
using ShelfWindowWatcherSessionStartTest = test::NoSessionAshTestBase;
TEST_F(ShelfWindowWatcherSessionStartTest, PreExistingWindow) {
- ShelfModel* model = WmShell::Get()->shelf_model();
+ ShelfModel* model = Shell::Get()->shelf_model();
ASSERT_FALSE(
- WmShell::Get()->session_controller()->IsActiveUserSessionStarted());
+ Shell::Get()->session_controller()->IsActiveUserSessionStarted());
// ShelfModel only has an APP_LIST item.
EXPECT_EQ(1, model->item_count());
« no previous file with comments | « ash/common/shelf/shelf_window_watcher_item_delegate.cc ('k') | ash/common/shelf/wm_shelf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698