Skip to content

Commit

Permalink
Fix test mock to match
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Sep 20, 2018
1 parent 9b2c05d commit 9494bae
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/unit-tests/input/evdev/test_libinput_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9494bae

Please sign in to comment.