21#include "gmock/gmock.h"
22#include "gtest/gtest.h"
35 bool setFeature(
int feature,
double value1,
double value2)
override {
38 bool getFeature(
int feature,
double *value1,
double *value2)
override {
41 bool hasOnOff(
int feature,
bool *HasOnOff)
override {
return true; };
42 bool setActive(
int feature,
bool onoff)
override {
return true; };
43 bool getActive(
int feature,
bool *isActive)
override {
return true; };
Mocking class created to replace the grabber object.
bool getMode(int feature, FeatureMode *mode) override
Get the current mode for the feature.
bool setOnePush(int feature) override
Set the requested feature to a value (saturation, brightness ... )
bool getActive(int feature, bool *isActive) override
Get the current status of the feature, on or off.
bool hasOnePush(int feature, bool *hasOnePush) override
Check if the requested feature has the 'onePush' mode.
bool hasAuto(int feature, bool *hasAuto) override
Check if the requested feature has the 'auto' mode.
bool getCameraDescription(CameraDescriptor *camera) override
Get a basic description of the camera hw.
bool getFeature(int feature, double *value1, double *value2) override
Get the current value for the requested feature.
bool hasFeature(int feature, bool *hasFeature) override
Check if camera has the requested feature (saturation, brightness ... )
MOCK_METHOD(bool, getFeature,(int, double *),(override))
MOCK_METHOD(bool, setFeature,(int, double),(override))
bool hasOnOff(int feature, bool *HasOnOff) override
Check if the camera has the ability to turn on/off the requested feature.
bool hasManual(int feature, bool *hasManual) override
Check if the requested feature has the 'manual' mode.
bool setFeature(int feature, double value1, double value2) override
Set the requested feature to a value using 2 params (like white balance)
bool setActive(int feature, bool onoff) override
Set the requested feature on or off.
bool setMode(int feature, FeatureMode mode) override
Set the requested mode for the feature.
Control interface for frame grabber devices.