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

Unified Diff: ash/wm/screen_dimmer_unittest.cc

Issue 2735983006: Renames WmWindowUserData and converts to using aura (Closed)
Patch Set: cleanup 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
Index: ash/wm/screen_dimmer_unittest.cc
diff --git a/ash/wm/screen_dimmer_unittest.cc b/ash/wm/screen_dimmer_unittest.cc
index 709886f738be2e07edcb986af69f8b8416e570f8..df36a56256604414f59104ad681559b07a742835 100644
--- a/ash/wm/screen_dimmer_unittest.cc
+++ b/ash/wm/screen_dimmer_unittest.cc
@@ -6,10 +6,9 @@
#include <memory>
+#include "ash/common/window_user_data.h"
#include "ash/common/wm/window_dimmer.h"
-#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
-#include "ash/common/wm_window_user_data.h"
#include "ash/root_window_controller.h"
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
@@ -37,9 +36,8 @@ class ScreenDimmerTest : public AshTestBase {
aura::Window* GetDimWindow() {
WindowDimmer* window_dimmer =
- dimmer_->window_dimmers_->Get(WmShell::Get()->GetPrimaryRootWindow());
- return window_dimmer ? WmWindow::GetAuraWindow(window_dimmer->window())
- : nullptr;
+ dimmer_->window_dimmers_->Get(Shell::GetPrimaryRootWindow());
+ return window_dimmer ? window_dimmer->window() : nullptr;
}
ui::Layer* GetDimWindowLayer() {
@@ -132,7 +130,7 @@ class ScreenDimmerShellDestructionTest : public AshTestBase {
// This test verifies ScreenDimmer can be destroyed after the shell. The
// interesting part of this test is in TearDown(), which creates a ScreenDimmer
-// that is deleted after WmShell.
+// that is deleted after Shell.
TEST_F(ScreenDimmerShellDestructionTest, DontCrashIfScreenDimmerOutlivesShell) {
}

Powered by Google App Engine
This is Rietveld 408576698