From d479b3deb077668c35944991d2e23f43c331e762 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Mon, 7 Sep 2020 17:47:02 +0900 Subject: [PATCH] tests: enhance the coverage for DSWaylandSurface Change-Id: I708a6fc597911c54d9bfe7711fc2563b82dfb8d9 --- tests/DSWaylandSurface-test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/DSWaylandSurface-test.cpp b/tests/DSWaylandSurface-test.cpp index a83d794..d8db123 100644 --- a/tests/DSWaylandSurface-test.cpp +++ b/tests/DSWaylandSurface-test.cpp @@ -137,6 +137,10 @@ TEST_F(DSWaylandSurfaceTest, registerCallbackSurfaceCommitted) wl_surface_attach(testClient->surface, testClient->buffer, 0, 0); wl_surface_damage(testClient->surface, 0, 0, 100, 100); + wl_surface_set_buffer_transform(testClient->surface, 0); + wl_surface_set_buffer_scale(testClient->surface, 1); + wl_surface_damage_buffer(testClient->surface, 0, 0, 100, 100); + wl_surface_frame(testClient->surface); wl_surface_commit(testClient->surface); wl_display_roundtrip(testClient->display); -- 2.7.4