test: add read and write interface mocks
The pluggable sensor object receives a reader and writer
interface. These are now mocked to enable some testing that
involves Pluggable Sensors.
Change-Id: If2d121ab47a2c044b0f3fd3465bfe45cf26c4f98
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/test/readinterface_mock.hpp b/test/readinterface_mock.hpp
new file mode 100644
index 0000000..0735559
--- /dev/null
+++ b/test/readinterface_mock.hpp
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "interfaces.hpp"
+
+class ReadInterfaceMock : public ReadInterface
+{
+ public:
+ virtual ~ReadInterfaceMock() = default;
+
+ MOCK_METHOD0(read, ReadReturn());
+};