Skip to content

Commit 5d60c55

Browse files
authored
emulation on host: missing mock functions, improve host interface handling (#7404)
1 parent b263888 commit 5d60c55

File tree

4 files changed

+481
-458
lines changed

4 files changed

+481
-458
lines changed

tests/host/common/MockEsp.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ uint32_t EspClass::getFreeHeap()
108108
return 30000;
109109
}
110110

111+
uint16_t EspClass::getMaxFreeBlockSize()
112+
{
113+
return 20000;
114+
}
115+
111116
String EspClass::getResetReason()
112117
{
113118
return "Power on";

tests/host/common/MockWiFiServerSocket.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,8 @@ void WiFiServer::close ()
145145
::close(pcb2int(_listen_pcb));
146146
_listen_pcb = int2pcb(-1);
147147
}
148+
149+
void WiFiServer::stop ()
150+
{
151+
close();
152+
}

0 commit comments

Comments
 (0)