Imt.Base C++ API V4.1.1.0
Loading...
Searching...
No Matches
MockSerialPort.h
Go to the documentation of this file.
1// (c) IMT - Information Management Technology AG, CH-9470 Buchs, www.imt.ch.
2
3#ifndef IMT_BASE_OS_LINUX_GMOCK_MOCKSERIALPORT_H
4#define IMT_BASE_OS_LINUX_GMOCK_MOCKSERIALPORT_H
5
6#include <gmock/gmock.h>
9
10namespace imt {
11namespace base {
12namespace os {
13namespace linux {
14namespace gmock {
15
20
21public:
22
23 MOCK_METHOD(void, open, (std::string const& deviceName), ());
24 MOCK_METHOD(void, close, (std::string const& deviceName), ());
25 MOCK_METHOD(size_t, read, (std::string const& deviceName, std::vector<uint8_t>& data, size_t numberOfBytesToRead), ());
26 MOCK_METHOD(size_t, write, (std::string const& deviceName, std::vector<uint8_t> data), ());
27};
28
29} // namespace gmock
30} // namespace linux
31} // namespace os
32} // namespace base
33} // namespace imt
34
35#endif // #ifndef IMT_BASE_OS_LINUX_GMOCK_MOCKSERIALPORT_H
Serial port mock implementation.
MOCK_METHOD(size_t, write,(std::string const &deviceName, std::vector< uint8_t > data),())
MOCK_METHOD(void, open,(std::string const &deviceName),())
MOCK_METHOD(size_t, read,(std::string const &deviceName, std::vector< uint8_t > &data, size_t numberOfBytesToRead),())
MOCK_METHOD(void, close,(std::string const &deviceName),())
This is a application specific file which is used to configure Imt.Base.Core.Math.