From a0108fe69b1c3d87764e361da19ecf9fd8a7ea67 Mon Sep 17 00:00:00 2001 From: david gauchard Date: Tue, 29 Jan 2019 16:59:17 +0100 Subject: [PATCH] emulation on host: mock lwIP functions used in latest dhcp renew patch (#5691) --- tests/host/Makefile | 1 + tests/host/common/MocklwIP.cpp | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/host/common/MocklwIP.cpp diff --git a/tests/host/Makefile b/tests/host/Makefile index 5f8285374..15d71eb4c 100644 --- a/tests/host/Makefile +++ b/tests/host/Makefile @@ -74,6 +74,7 @@ MOCK_CPP_FILES_COMMON := $(addprefix common/,\ WMath.cpp \ MockSerial.cpp \ MockTools.cpp \ + MocklwIP.cpp \ ) MOCK_CPP_FILES := $(MOCK_CPP_FILES_COMMON) $(addprefix common/,\ diff --git a/tests/host/common/MocklwIP.cpp b/tests/host/common/MocklwIP.cpp new file mode 100644 index 000000000..a4b9bbcad --- /dev/null +++ b/tests/host/common/MocklwIP.cpp @@ -0,0 +1,15 @@ + +#include + +extern "C" +{ + +netif* netif_list = nullptr; + +err_t dhcp_renew(struct netif *netif) +{ + (void)netif; + return ERR_OK; +} + +} // extern "C"