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/mocks/MockTarget.hpp@28:8fc53a870691, 2017-03-27 (annotated)
- Committer:
- Maxime Dupuis
- Date:
- Mon Mar 27 18:34:07 2017 -0400
- Revision:
- 28:8fc53a870691
- Child:
- 29:049a2f46c738
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 | #ifndef MOCK_TARGET_HPP |
Maxime Dupuis |
28:8fc53a870691 | 2 | #define MOCK_TARGET_HPP |
Maxime Dupuis |
28:8fc53a870691 | 3 | |
Maxime Dupuis |
28:8fc53a870691 | 4 | #include "TargetInterface.hpp" |
Maxime Dupuis |
28:8fc53a870691 | 5 | |
Maxime Dupuis |
28:8fc53a870691 | 6 | class MockTarget : public TargetInterface |
Maxime Dupuis |
28:8fc53a870691 | 7 | { |
Maxime Dupuis |
28:8fc53a870691 | 8 | public: |
Maxime Dupuis |
28:8fc53a870691 | 9 | MOCK_METHOD0(ally_command, void()); |
Maxime Dupuis |
28:8fc53a870691 | 10 | MOCK_METHOD0(enemy_command, void()); |
Maxime Dupuis |
28:8fc53a870691 | 11 | MOCK_METHOD1(timeout, void(int)); |
Maxime Dupuis |
28:8fc53a870691 | 12 | MOCK_METHOD1(hit, void(int)); |
Maxime Dupuis |
28:8fc53a870691 | 13 | }; |
Maxime Dupuis |
28:8fc53a870691 | 14 | |
Maxime Dupuis |
28:8fc53a870691 | 15 | |
Maxime Dupuis |
28:8fc53a870691 | 16 | |
Maxime Dupuis |
28:8fc53a870691 | 17 | #endif |