18 #ifndef MIR_TEST_DOUBLES_MOCK_ANDROID_HW_H_
19 #define MIR_TEST_DOUBLES_MOCK_ANDROID_HW_H_
24 #include <hardware/hardware.h>
25 #include <gmock/gmock.h>
41 static int hw_open(
const struct hw_module_t* module,
const char*,
struct hw_device_t** device);
42 static int hw_close(
struct hw_device_t*);
52 static int hw_open(
const struct hw_module_t* module,
const char*,
struct hw_device_t** device);
53 static int hw_close(
struct hw_device_t*);
63 MOCK_METHOD2(hw_get_module,
int(
const char *
id,
const struct hw_module_t**));
hw_module_methods_t gr_methods
Definition: mock_android_hw.h:54
MOCK_METHOD2(hw_get_module, int(const char *id, const struct hw_module_t **))
hw_device_t & mock_hw_device
Definition: mock_android_hw.h:45
static int hw_open(const struct hw_module_t *module, const char *, struct hw_device_t **device)
HardwareModuleStub(hw_device_t &device)
std::shared_ptr< HardwareModuleStub > mock_hwc_module
Definition: mock_android_hw.h:70
static int hw_close(struct hw_device_t *)
Definition: mock_android_hw.h:48
static int hw_open(const struct hw_module_t *module, const char *, struct hw_device_t **device)
std::shared_ptr< alloc_device_t > mock_alloc_device
Definition: mock_android_hw.h:66
Definition: mock_android_hw.h:57
static int hw_close(struct hw_device_t *)
hw_module_methods_t gr_methods
Definition: mock_android_hw.h:44
FailingHardwareModuleStub()
bool open_count_matches_close()
struct hw_module_t hw_module
Definition: mock_android_hw.h:35
std::shared_ptr< HardwareModuleStub > mock_gralloc_module
Definition: mock_android_hw.h:69
std::shared_ptr< hwc_composer_device_1 > mock_hwc_device
Definition: mock_android_hw.h:67
Definition: mock_android_hw.h:36