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"