16 #ifndef PSEN_SCAN_TEST_MOCK_PSEN_SCAN_UDP_INTERFACE_H 17 #define PSEN_SCAN_TEST_MOCK_PSEN_SCAN_UDP_INTERFACE_H 19 #include <boost/asio.hpp> 21 #include <gmock/gmock.h> 34 MOCK_METHOD2(
read, std::size_t(boost::asio::mutable_buffers_1& buffer,
const std::chrono::steady_clock::duration));
41 #endif // PSEN_SCAN_TEST_MOCK_PSEN_SCAN_UDP_INTERFACE_H virtual std::size_t read(boost::asio::mutable_buffers_1 &buffer, const std::chrono::steady_clock::duration timeout)=0
Receive data from the scanner.
virtual void close()=0
Closes the connection to the scanner device.
virtual void write(const boost::asio::mutable_buffers_1 &buffer)=0
Sends data to the scanner device.
Abstract base class for the communication interface with the PSENscan scanner.
MOCK_METHOD2(read, std::size_t(boost::asio::mutable_buffers_1 &buffer, const std::chrono::steady_clock::duration))
boost::asio::ip::udp::udp::endpoint udp_endpoint_read_
MOCK_METHOD1(write, void(const boost::asio::mutable_buffers_1 &buffer))
MOCK_METHOD0(open, void())
virtual void open()=0
Opens the connection to the scanner device.