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

Unified Diff: ui/ozone/platform/wayland/wayland_test.cc

Issue 1742883002: ozone/platform/wayland: Drop WaylandWindow::GetWidget() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wayland-test1
Patch Set: Created 4 years, 10 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 | « ui/ozone/platform/wayland/wayland_test.h ('k') | ui/ozone/platform/wayland/wayland_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/wayland/wayland_test.cc
diff --git a/ui/ozone/platform/wayland/wayland_test.cc b/ui/ozone/platform/wayland/wayland_test.cc
index 6fc266bc73d8007fa6636b8fd486672160f6eace..85c897da1952dd5281b3d9d61ef39a7b5e70bc70 100644
--- a/ui/ozone/platform/wayland/wayland_test.cc
+++ b/ui/ozone/platform/wayland/wayland_test.cc
@@ -4,6 +4,9 @@
#include "ui/ozone/platform/wayland/wayland_test.h"
+using ::testing::SaveArg;
+using ::testing::_;
+
namespace ui {
WaylandTest::WaylandTest()
@@ -14,12 +17,15 @@ WaylandTest::~WaylandTest() {}
void WaylandTest::SetUp() {
ASSERT_TRUE(server.Start());
ASSERT_TRUE(display.Initialize());
+ EXPECT_CALL(delegate, OnAcceleratedWidgetAvailable(_, _))
+ .WillOnce(SaveArg<0>(&widget));
ASSERT_TRUE(window.Initialize());
+ ASSERT_NE(widget, gfx::kNullAcceleratedWidget);
wl_display_roundtrip(display.display());
server.Pause();
- surface = server.GetObject<wl::MockSurface>(window.GetWidget());
+ surface = server.GetObject<wl::MockSurface>(widget);
ASSERT_TRUE(surface);
initialized = true;
}
« no previous file with comments | « ui/ozone/platform/wayland/wayland_test.h ('k') | ui/ozone/platform/wayland/wayland_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698