Skip to content

Commit a0108fe

Browse files
authored
emulation on host: mock lwIP functions used in latest dhcp renew patch (#5691)
1 parent 05ac2e6 commit a0108fe

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Diff for: tests/host/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ MOCK_CPP_FILES_COMMON := $(addprefix common/,\
7474
WMath.cpp \
7575
MockSerial.cpp \
7676
MockTools.cpp \
77+
MocklwIP.cpp \
7778
)
7879

7980
MOCK_CPP_FILES := $(MOCK_CPP_FILES_COMMON) $(addprefix common/,\

Diff for: tests/host/common/MocklwIP.cpp

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
#include <lwip/netif.h>
3+
4+
extern "C"
5+
{
6+
7+
netif* netif_list = nullptr;
8+
9+
err_t dhcp_renew(struct netif *netif)
10+
{
11+
(void)netif;
12+
return ERR_OK;
13+
}
14+
15+
} // extern "C"

0 commit comments

Comments
 (0)