added unit test directive to switch out parameter storage

This commit is contained in:
Andreas Antener
2015-02-03 10:35:20 +01:00
committed by Lorenz Meier
parent 13039f9e69
commit 5cccc01cd4
4 changed files with 45 additions and 27 deletions

21
unittests/uorb_stub.cpp Normal file
View File

@@ -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;
}