21#include "../InterfaceForCApi.h"
22#include "gmock/gmock.h"
23#include "gtest/gtest.h"
51 (
struct udev *,
char, dev_t), (
override));
59 (
int, fd_set *, fd_set *, fd_set *,
struct timeval *),
66 const struct v4l2_control &right) {
67 if (left.id != right.id)
69 if (left.value != right.value)
bool operator==(const struct v4l2_control &left, const struct v4l2_control &right)
MOCK_METHOD(int, open_c,(const char *, int),(override))
MOCK_METHOD(int, open_c,(const char *, int, mode_t),(override))
MOCK_METHOD(struct udev_device *, udev_device_unref_c,(struct udev_device *),(override))
MOCK_METHOD(void *, memcpy_c,(void *, const void *, size_t),(override))
MOCK_METHOD(int, select_c,(int, fd_set *, fd_set *, fd_set *, struct timeval *),(override))
MOCK_METHOD(struct udev_device *, udev_device_new_from_devnum_c,(struct udev *, char, dev_t),(override))
MOCK_METHOD(void *, mmap_c,(void *, size_t, int, int, int, __off_t),(override))
MOCK_METHOD(int, ioctl_control_c,(int, int, struct v4l2_control &),(override))
MOCK_METHOD(struct udev *, udev_new_c,(),(override))
MOCK_METHOD(int, ioctl_media_c,(int, int, struct media_entity_desc &),(override))
MOCK_METHOD(int, ioctl_query_c,(int, int, struct v4l2_queryctrl &),(override))
MOCK_METHOD(int, xioctl_v4l2,(int, int, struct v4l2_buffer *),(override))
MOCK_METHOD(int, xioctl,(int, int, void *),(override))
MOCK_METHOD(const char *, udev_device_get_devnode_c,(struct udev_device *),(override))
MOCK_METHOD(dev_t, makedev_c,(int, int),(override))
virtual int xioctl_v4l2(int fh, int request, struct v4l2_buffer *arg)
virtual int ioctl_query_c(int fd, int value, struct v4l2_queryctrl &info)
virtual struct udev * udev_new_c()
virtual struct udev_device * udev_device_new_from_devnum_c(struct udev *udev, char type, dev_t devnum)
virtual dev_t makedev_c(int major, int minor)
virtual int open_c(const char *path, int oflag)
virtual struct udev_device * udev_device_unref_c(struct udev_device *udev_device)
virtual const char * udev_device_get_devnode_c(struct udev_device *udev_device)
virtual int xioctl(int fh, int request, void *arg)
virtual int ioctl_media_c(int fd, int value, struct media_entity_desc &info)
virtual int select_c(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
virtual void * mmap_c(void *addr, size_t len, int prot, int flags, int fd, __off_t offset)
virtual int ioctl_control_c(int fd, int value, struct v4l2_control &info)
virtual void * memcpy_c(void *dest, const void *src, size_t size)