NerfUS / Mbed 2 deprecated NerfUSTarget

Dependencies:   LedController mbed-rtos mbed NerfUSXbee Servomotor TargetManager

Fork of NerfUS by NerfUS

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