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
TESTS/HardwareInterfaceImportTest.cpp
- Committer:
- Maxime Dupuis
- Date:
- 2017-02-16
- Revision:
- 13:850be84c78dd
File content as of revision 13:850be84c78dd:
#include "gmock/gmock.h" #include "gtest/gtest.h" #include "HardwareInterface.hpp" class MockHardwareLPC1768 : public HardwareInterface { public: MOCK_METHOD0(blink, void()); }; TEST(ImportingLibraryFromMbedOrg, IsPossibleToMockInterface) { MockHardwareLPC1768 hardwareLPC1768; EXPECT_CALL(hardwareLPC1768, blink()); hardwareLPC1768.blink(); }