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

Unified Diff: ash/wm/overview/window_selector_unittest.cc

Issue 2908793002: [mus+ash] Removes WmWindow from ash/wm/overview and ash/wm/workspace (Closed)
Patch Set: Created 3 years, 7 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/overview/window_selector_item.cc ('k') | ash/wm/panels/panel_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overview/window_selector_unittest.cc
diff --git a/ash/wm/overview/window_selector_unittest.cc b/ash/wm/overview/window_selector_unittest.cc
index 0bec0e49b0dd58cad6ee0119fd5968534b55bb68..c69caf244c87972ae378263e441d51906ef3a1d4 100644
--- a/ash/wm/overview/window_selector_unittest.cc
+++ b/ash/wm/overview/window_selector_unittest.cc
@@ -27,7 +27,6 @@
#include "ash/wm/window_util.h"
#include "ash/wm/wm_event.h"
#include "ash/wm/workspace/workspace_window_resizer.h"
-#include "ash/wm_window.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/user_action_tester.h"
@@ -136,10 +135,9 @@ class WindowSelectorTest : public test::AshTestBase {
params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET;
widget->Init(params);
widget->Show();
- WmWindow* window = WmWindow::Get(widget->GetNativeWindow());
- window->aura_window()->SetProperty(aura::client::kTopViewInset,
- kHeaderHeight);
- ParentWindowInPrimaryRootWindow(widget->GetNativeWindow());
+ aura::Window* window = widget->GetNativeWindow();
+ window->SetProperty(aura::client::kTopViewInset, kHeaderHeight);
+ ParentWindowInPrimaryRootWindow(window);
return widget;
}
@@ -834,9 +832,8 @@ TEST_F(WindowSelectorTest, CloseButtonOnMultipleDisplay) {
params.parent = window1->parent();
widget->Init(params);
widget->Show();
- WmWindow* window = WmWindow::Get(widget->GetNativeWindow());
- window->aura_window()->SetProperty(aura::client::kTopViewInset,
- kHeaderHeight);
+ aura::Window* window = widget->GetNativeWindow();
+ window->SetProperty(aura::client::kTopViewInset, kHeaderHeight);
ASSERT_EQ(root_windows[1], window1->GetRootWindow());
« no previous file with comments | « ash/wm/overview/window_selector_item.cc ('k') | ash/wm/panels/panel_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698