Add unit tests for buttons / relays; and a bunch of mocks :)

This commit is contained in:
Pim van Pelt
2017-12-20 17:32:28 +01:00
parent 1cbd2130db
commit 4b4642416f
12 changed files with 6304 additions and 3 deletions

View File

@ -5,6 +5,8 @@
*/
#include "mgos.h"
#include <time.h>
#include "mongoose/mongoose.h"
#define MGOS_APP "unittest"
@ -38,6 +40,9 @@ typedef void (*timer_callback)(void *param);
mgos_timer_id mgos_set_timer(int msecs, int flags, timer_callback cb, void *cb_arg);
void mgos_clear_timer(mgos_timer_id id);
float mg_time();
double mgos_uptime();
char *mgos_sys_ro_vars_get_mac_address();
char *mgos_sys_ro_vars_get_arch();
#endif // __MGOS_MOCK_H