NerfUS game coordinator for the Nerf gun firing range
Dependencies: HardwareInterface mbed-rtos mbed
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 07:10:37 by 1.7.2