1 #include "gmock/gmock.h" 2 #include "gtest/gtest.h" 16 if (_slow) usleep(15000);
19 void init()
override { _init =
true; }
21 void cleanup()
override { _cleanedUp =
true; }
36 for (
int i = 0; i < 10; i++) {
45 EXPECT_TRUE(task2.
_init);
49 EXPECT_TRUE(task2.
_init);
58 for (
int i = 0; i < 10; i++) {
71 printf(
"scount = %d\n",
scount);
TEST(PeriodicTask, test1)
Implementation of a periodic function running in a separate thread. Periodic tasks have a task manage...
PeriodicTask(PeriodicTaskManager *taskManager, float period, std::string name)
MX f(const MX &x, const MX &u)