Skip to content

Commit

Permalink
emulation on host: missing mock functions, improve host interface han…
Browse files Browse the repository at this point in the history
…dling (#7404)
  • Loading branch information
d-a-v authored Jun 24, 2020
1 parent b263888 commit 5d60c55
Show file tree
Hide file tree
Showing 4 changed files with 481 additions and 458 deletions.
5 changes: 5 additions & 0 deletions tests/host/common/MockEsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ uint32_t EspClass::getFreeHeap()
return 30000;
}

uint16_t EspClass::getMaxFreeBlockSize()
{
return 20000;
}

String EspClass::getResetReason()
{
return "Power on";
Expand Down
5 changes: 5 additions & 0 deletions tests/host/common/MockWiFiServerSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,8 @@ void WiFiServer::close ()
::close(pcb2int(_listen_pcb));
_listen_pcb = int2pcb(-1);
}

void WiFiServer::stop ()
{
close();
}
Loading

0 comments on commit 5d60c55

Please sign in to comment.