summaryrefslogtreecommitdiffstats
path: root/tools/test
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-12-11 10:22:14 -0800
committerPatrick Venture <venture@google.com>2018-12-11 18:26:42 -0800
commitaf69625faa119d87fc66f8c18406ea0f238bad27 (patch)
treefc603643cf8ae789627d624e137d74c586bbb526 /tools/test
parentbf58cd6464495e34ca961955ec7d1730de565902 (diff)
downloadphosphor-ipmi-flash-af69625faa119d87fc66f8c18406ea0f238bad27.tar.gz
phosphor-ipmi-flash-af69625faa119d87fc66f8c18406ea0f238bad27.zip
tools: start implementing data interface
The host must provide multiple data interfaces. Each data interface is responsible for configuring its data pathway and sending the contents via this pathway, as well as any flow control. Change-Id: If856519536d01043e69c45044fcd0ad525592486 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'tools/test')
-rw-r--r--tools/test/data_interface_mock.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/test/data_interface_mock.hpp b/tools/test/data_interface_mock.hpp
new file mode 100644
index 0000000..d823da5
--- /dev/null
+++ b/tools/test/data_interface_mock.hpp
@@ -0,0 +1,14 @@
+#pragma once
+
+#include "interface.hpp"
+
+#include <gmock/gmock.h>
+
+class DataInterfaceMock : public DataInterface
+{
+
+ public:
+ virtual ~DataInterfaceMock() = default;
+
+ MOCK_METHOD2(sendContents, bool(const std::string&, std::uint16_t));
+};
OpenPOWER on IntegriCloud