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
HardwareInterfaceImportTest.cpp
00001 #include "gmock/gmock.h" 00002 #include "gtest/gtest.h" 00003 #include "HardwareInterface.hpp" 00004 00005 class MockHardwareLPC1768 : public HardwareInterface 00006 { 00007 public: 00008 MOCK_METHOD0(blink, void()); 00009 }; 00010 00011 TEST(ImportingLibraryFromMbedOrg, IsPossibleToMockInterface) 00012 { 00013 MockHardwareLPC1768 hardwareLPC1768; 00014 00015 EXPECT_CALL(hardwareLPC1768, blink()); 00016 00017 hardwareLPC1768.blink(); 00018 } 00019
Generated on Thu Jul 14 2022 01:50:38 by
1.7.2
