mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
emulation on host: mock lwIP functions used in latest dhcp renew patch (#5691)
This commit is contained in:
parent
05ac2e69e2
commit
a0108fe69b
@ -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/,\
|
||||
|
15
tests/host/common/MocklwIP.cpp
Normal file
15
tests/host/common/MocklwIP.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
#include <lwip/netif.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
|
||||
netif* netif_list = nullptr;
|
||||
|
||||
err_t dhcp_renew(struct netif *netif)
|
||||
{
|
||||
(void)netif;
|
||||
return ERR_OK;
|
||||
}
|
||||
|
||||
} // extern "C"
|
Loading…
x
Reference in New Issue
Block a user