20 #ifndef AAMP_ION_MOCKS_H
21 #define AAMP_ION_MOCKS_H
24 #include <sys/types.h>
25 #include <gmock/gmock.h>
27 #define __BEGIN_DECLS extern "C" {
35 MOCK_METHOD(
int, ion_open, ());
36 MOCK_METHOD(
int, ion_close, (
int fd));
37 MOCK_METHOD(
int, ion_alloc, (
int fd,
size_t len,
size_t align,
unsigned int heap_mask,
unsigned int flags, ion_user_handle_t *handle));
38 MOCK_METHOD(
int, ion_free, (
int fd, ion_user_handle_t handle));
39 MOCK_METHOD(
int, ion_share, (
int fd, ion_user_handle_t handle,
int *share_fd));
40 MOCK_METHOD(
int, ion_phys, (
int fd, ion_user_handle_t handle,
unsigned long *addr,
unsigned int *size));