NerfUS game coordinator for the Nerf gun firing range

Dependencies:   HardwareInterface mbed-rtos mbed

Fork of NerfUS by NerfUS

TESTS/HardwareInterfaceImportTest.cpp

Committer:
Ismael Balafrej
Date:
2017-03-17
Branch:
PlayableGame
Revision:
17:48474266a361
Parent:
13:850be84c78dd

File content as of revision 17:48474266a361:

#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();
}