19 #ifndef MIR_TEST_DOUBLES_MOCK_FB_HAL_DEVICE_H_
20 #define MIR_TEST_DOUBLES_MOCK_FB_HAL_DEVICE_H_
22 #include <hardware/hwcomposer.h>
23 #include <hardware/gralloc.h>
24 #include <hardware/fb.h>
25 #include <gmock/gmock.h>
43 int const pf,
int const numfbs)
44 : framebuffer_device_t({
58 nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
66 static int hook_post(
struct framebuffer_device_t* mock_fb, buffer_handle_t handle)
69 return mocker->post_interface(mock_fb, handle);
75 return mocker->setSwapInterval_interface(mock_fb, interval);
78 MOCK_METHOD2(post_interface,
int(
struct framebuffer_device_t*, buffer_handle_t));
79 MOCK_METHOD2(setSwapInterval_interface,
int(
struct framebuffer_device_t*,
int));