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

Unified Diff: ash/wm/container_finder_unittest.cc

Issue 2814243002: Removes a couple more functions from WmWindow (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
« no previous file with comments | « ash/wm/container_finder.cc ('k') | ash/wm/default_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/container_finder_unittest.cc
diff --git a/ash/wm/container_finder_unittest.cc b/ash/wm/container_finder_unittest.cc
index 459ac7d32d348d0a124eb47abb585974e2a36b8e..44b82613f15a3f2c0397f02055045c436d81d294 100644
--- a/ash/wm/container_finder_unittest.cc
+++ b/ash/wm/container_finder_unittest.cc
@@ -9,6 +9,7 @@
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/test/ash_test.h"
#include "ash/wm_window.h"
+#include "ui/aura/window.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/views/widget/widget.h"
@@ -20,15 +21,15 @@ TEST_F(ContainerFinderTest, GetContainerForWindow) {
// Create a normal widget in the default container.
std::unique_ptr<views::Widget> widget =
CreateTestWidget(gfx::Rect(1, 2, 3, 4));
- WmWindow* window = WmWindow::Get(widget->GetNativeWindow());
+ aura::Window* window = widget->GetNativeWindow();
// The window itself is not a container.
- EXPECT_EQ(kShellWindowId_Invalid, window->GetShellWindowId());
+ EXPECT_EQ(kShellWindowId_Invalid, window->id());
// Container lookup finds the default container.
- WmWindow* container = wm::GetContainerForWindow(window);
+ WmWindow* container = wm::GetContainerForWindow(WmWindow::Get(window));
ASSERT_TRUE(container);
- EXPECT_EQ(kShellWindowId_DefaultContainer, container->GetShellWindowId());
+ EXPECT_EQ(kShellWindowId_DefaultContainer, container->aura_window()->id());
}
} // namespace ash
« no previous file with comments | « ash/wm/container_finder.cc ('k') | ash/wm/default_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698