NerfUS mobile node that manages a target for the Nerf gun firing range
Dependencies: LedController mbed-rtos mbed NerfUSXbee Servomotor TargetManager
Fork of NerfUS by
Diff: TESTS/TargetManagerTest.cpp
- Revision:
- 30:412a779cf607
- Parent:
- 28:8fc53a870691
- Child:
- 31:c6dc9811ed14
--- a/TESTS/TargetManagerTest.cpp Mon Mar 27 18:39:38 2017 -0400 +++ b/TESTS/TargetManagerTest.cpp Mon Mar 27 19:05:45 2017 -0400 @@ -1,6 +1,7 @@ #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "mocks/MockNerfusTicker.hpp" #include "mocks/MockTarget.hpp" #include "TargetManager.hpp" @@ -9,13 +10,19 @@ public: TargetManagerTest() { + targets.push_back(&mock_target_a); + targets.push_back(&mock_target_b); } - TargetManager target_manager; + MockTarget mock_target_a; + MockTarget mock_target_b; + std::vector<TargetInterface*> targets; + + MockNerfusTicker mock_nerfus_ticker; }; TEST_F(TargetManagerTest, LibraryBuilds) { - + TargetManager target_manager(targets, mock_nerfus_ticker); }