summaryrefslogtreecommitdiff
path: root/chromium/ui/ozone/platform/wayland/host/wayland_pointer_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/ozone/platform/wayland/host/wayland_pointer_unittest.cc')
-rw-r--r--chromium/ui/ozone/platform/wayland/host/wayland_pointer_unittest.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chromium/ui/ozone/platform/wayland/host/wayland_pointer_unittest.cc b/chromium/ui/ozone/platform/wayland/host/wayland_pointer_unittest.cc
index be9cd942d6e..b96f2e6f73f 100644
--- a/chromium/ui/ozone/platform/wayland/host/wayland_pointer_unittest.cc
+++ b/chromium/ui/ozone/platform/wayland/host/wayland_pointer_unittest.cc
@@ -72,14 +72,15 @@ TEST_P(WaylandPointerTest, Enter) {
TEST_P(WaylandPointerTest, Leave) {
MockPlatformWindowDelegate other_delegate;
- WaylandWindow other_window(&other_delegate, connection_.get());
gfx::AcceleratedWidget other_widget = gfx::kNullAcceleratedWidget;
EXPECT_CALL(other_delegate, OnAcceleratedWidgetAvailable(_))
.WillOnce(SaveArg<0>(&other_widget));
+
PlatformWindowInitProperties properties;
properties.bounds = gfx::Rect(0, 0, 10, 10);
properties.type = PlatformWindowType::kWindow;
- ASSERT_TRUE(other_window.Initialize(std::move(properties)));
+ auto other_window = WaylandWindow::Create(&other_delegate, connection_.get(),
+ std::move(properties));
ASSERT_NE(other_widget, gfx::kNullAcceleratedWidget);
Sync();