tools: tie devmem io handler into lpc handler
The lpc handler requires mapping memory on the host.
Change-Id: Ic851dfa6c06d10566f66153ce7915cf5ad66992b
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/test/tools_lpc_unittest.cpp b/test/tools_lpc_unittest.cpp
index 906d2b4..3a9d80e 100644
--- a/test/tools_lpc_unittest.cpp
+++ b/test/tools_lpc_unittest.cpp
@@ -1,5 +1,6 @@
#include "blob_interface_mock.hpp"
#include "internal_sys_mock.hpp"
+#include "io_mock.hpp"
#include "lpc.hpp"
#include <cstring>
@@ -15,8 +16,9 @@
{
internal::InternalSysMock sysMock;
BlobInterfaceMock blobMock;
+ HostIoInterfaceMock ioMock;
- LpcDataHandler handler(&blobMock, &sysMock);
+ LpcDataHandler handler(&blobMock, &ioMock, &sysMock);
std::uint16_t session = 0xbeef;
std::string filePath = "/asdf";