Commit Graph

10 Commits (mbed-os-5.10)

Author SHA1 Message Date
Michal Paszta 8c72bd5c0b unittests: Added tests for netsocket classes
New classes covered with unit tests: SocketAddress, EthernetInterface, EMACInterface, WiFiAccessPoint.
Also added missing namespace in front of mbed::Callback usages.
EMACInterface is covered by the EthernetInterface unit tests.
2018-10-19 11:46:55 +01:00
Seppo Takalo 5b659c898b Fix TCPSocket::accept() unittest.
accept() is not anymore returning NULL pointer. It was a bug.
2018-10-08 15:18:50 +01:00
Michal Paszta 77fc6a0347 unittests: InternetSocket class coverage improved.
Added more tests, improved the existing ones. setblocking tests were not checking anything, so they were removed and these functions are called in TCPSocket tests instead.
2018-10-08 15:18:50 +01:00
Michal Paszta 46b529a1ea unittests: Check NULL pointer scenario in TCPSocket::recvfrom 2018-10-08 15:18:50 +01:00
Michal Paszta 2bbf033fe2 unittests: improved coverage for UDPSocket and TCPSocket
Add functional and line coverage for UDPSocket and TCPSocket. The EventFlagsstub and NetworkStackstub classes are allowed to store multiple return values to allow running internal loops multiple times.
2018-10-08 15:18:50 +01:00
Lari-Matias Orjala b6b331f94d add auto-naming of unit test suites 2018-10-08 15:18:50 +01:00
Antti Kauppila fc97b2aca0 Rebased & fixed 2018-10-08 15:18:50 +01:00
Seppo Takalo b1ebb42d6b Fix SocketAddress unittests
Add ip4tos() and stoip4() into unittests.
NOTE: Probably should have been stubbed but this way we can also
test these helper functions.
2018-09-17 21:42:55 -05:00
Brian Daniels c2f6de6dbe Moving all unit tests to use hyphenated test name 2018-09-17 21:42:55 -05:00
Lari-Matias Orjala 4dde13db6d Add unit testing framework 2018-08-27 14:32:35 +03:00