Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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);
}
