diff options
Diffstat (limited to 'unittests/uorb_stub.cpp')
-rw-r--r-- | unittests/uorb_stub.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/unittests/uorb_stub.cpp b/unittests/uorb_stub.cpp new file mode 100644 index 000000000..fc039a408 --- /dev/null +++ b/unittests/uorb_stub.cpp @@ -0,0 +1,21 @@ +#include <stdint.h> +#include <sys/types.h> +//#include "gmock/gmock.h" + +#include "uORB/uORB.h" + +/****************************************** + * uORB stubs (incomplete) + * + * TODO: use googlemock +******************************************/ + +orb_advert_t orb_advertise(const struct orb_metadata *meta, const void *data) { + return (orb_advert_t)0; +} + +int orb_publish(const struct orb_metadata *meta, orb_advert_t handle, const void *data) { + return 0; +} + + |