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

Unified Diff: components/exo/shell_surface_unittest.cc

Issue 1819273002: exo: Improved implementation of child surfaces and popups. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix deps Created 4 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 | « components/exo/shell_surface.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface_unittest.cc
diff --git a/components/exo/shell_surface_unittest.cc b/components/exo/shell_surface_unittest.cc
index 4e5cbba073d886724fbc0333680c8874c620c1ed..4705f18599e4affae05a9cf3b2b18c3fdac88cb0 100644
--- a/components/exo/shell_surface_unittest.cc
+++ b/components/exo/shell_surface_unittest.cc
@@ -12,6 +12,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/aura/window.h"
#include "ui/views/widget/widget.h"
+#include "ui/wm/core/window_util.h"
namespace exo {
namespace {
@@ -37,8 +38,9 @@ TEST_F(ShellSurfaceTest, SetParent) {
surface->Attach(buffer.get());
surface->Commit();
- EXPECT_EQ(shell_surface->GetWidget()->GetNativeWindow()->parent(),
- parent_shell_surface->GetWidget()->GetNativeWindow());
+ EXPECT_EQ(
+ parent_shell_surface->GetWidget()->GetNativeWindow(),
+ wm::GetTransientParent(shell_surface->GetWidget()->GetNativeWindow()));
}
TEST_F(ShellSurfaceTest, Maximize) {
« no previous file with comments | « components/exo/shell_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698