From 9494baec8a14f11e97bc63d62f92a3eb3c2a1de5 Mon Sep 17 00:00:00 2001 From: Alan Griffiths Date: Thu, 20 Sep 2018 09:36:17 +0100 Subject: [PATCH] Fix test mock to match --- tests/unit-tests/input/evdev/test_libinput_device.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/unit-tests/input/evdev/test_libinput_device.cpp b/tests/unit-tests/input/evdev/test_libinput_device.cpp index f5fd503f5a9..831e692264f 100644 --- a/tests/unit-tests/input/evdev/test_libinput_device.cpp +++ b/tests/unit-tests/input/evdev/test_libinput_device.cpp @@ -268,6 +268,17 @@ struct LibInputDeviceOnTouchScreen : public LibInputDevice const float screen_y_pos = 30; const int width = 100; const int height = 200; + + void SetUp() override + { + LibInputDevice::SetUp(); + ON_CALL(mock_sink, output_info(0)) + .WillByDefault(Return( + mi::OutputInfo{ + true, + geom::Size{width, height}, + Matrix{{1.0f, 0.0f, 0, 0.0f, 1.0f, 0}}})); + } }; struct LibInputDeviceOnTouchpad : public LibInputDevice