00001 00024 #include "gmock/gmock.h" 00025 #include "serial_communication_interface.h" 00026 00027 class MockSerialCommunication : public SerialCommunicationInterface { 00028 public: 00029 MOCK_METHOD1(set_serial_device, void(std::string serial_device)); 00030 MOCK_METHOD1(open_port, int(struct termios *oldtio)); 00031 MOCK_METHOD1(close_port, int(struct termios *oldtio)); 00032 MOCK_METHOD1(send_character, int(unsigned char *str)); 00033 };