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
TESTS/TargetManagerTest.cpp@28:8fc53a870691, 2017-03-27 (annotated)
- Committer:
- Maxime Dupuis
- Date:
- Mon Mar 27 18:34:07 2017 -0400
- Revision:
- 28:8fc53a870691
- Child:
- 30:412a779cf607
Add TargetManager library and create MockTarget
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Maxime Dupuis |
28:8fc53a870691 | 1 | #include "gmock/gmock.h" |
Maxime Dupuis |
28:8fc53a870691 | 2 | #include "gtest/gtest.h" |
Maxime Dupuis |
28:8fc53a870691 | 3 | |
Maxime Dupuis |
28:8fc53a870691 | 4 | #include "mocks/MockTarget.hpp" |
Maxime Dupuis |
28:8fc53a870691 | 5 | #include "TargetManager.hpp" |
Maxime Dupuis |
28:8fc53a870691 | 6 | |
Maxime Dupuis |
28:8fc53a870691 | 7 | class TargetManagerTest : public ::testing::Test |
Maxime Dupuis |
28:8fc53a870691 | 8 | { |
Maxime Dupuis |
28:8fc53a870691 | 9 | public: |
Maxime Dupuis |
28:8fc53a870691 | 10 | TargetManagerTest() |
Maxime Dupuis |
28:8fc53a870691 | 11 | { |
Maxime Dupuis |
28:8fc53a870691 | 12 | } |
Maxime Dupuis |
28:8fc53a870691 | 13 | |
Maxime Dupuis |
28:8fc53a870691 | 14 | TargetManager target_manager; |
Maxime Dupuis |
28:8fc53a870691 | 15 | }; |
Maxime Dupuis |
28:8fc53a870691 | 16 | |
Maxime Dupuis |
28:8fc53a870691 | 17 | TEST_F(TargetManagerTest, LibraryBuilds) |
Maxime Dupuis |
28:8fc53a870691 | 18 | { |
Maxime Dupuis |
28:8fc53a870691 | 19 | |
Maxime Dupuis |
28:8fc53a870691 | 20 | } |
Maxime Dupuis |
28:8fc53a870691 | 21 |