Martin Kojtal
6bdbe754cd
Merge pull request #9799 from VeijoPesonen/bugfix-esp8266-dns
...
Increase events.share-eventsize to 768B because of ESP8266 AT driver and asynchronous DNS
2019-02-27 11:30:38 +01:00
Veijo Pesonen
517799fd06
NetworkStack: halts if unable to add an event to the event queue
2019-02-26 09:44:15 +02:00
Michal Paszta
b241943c12
Multiple memory handling fixes
...
Correct memory clean-ups in multiple tests and a stub.
2019-02-20 10:50:55 +01:00
Kevin Bracey
0f6a4cd0bd
InternetSocket: Use atomics, not volatile
...
Use a better tool for the job.
2019-01-18 15:37:11 +02:00
deepikabhavnani
117eb0bc87
Add socketstats stub functions for unittest and addressed reviews
2018-11-26 09:42:50 -06:00
Michal Paszta
42940fab3c
Deprecate TCP/UDPSocket open-calling constructors
...
Updated Doxygen, removed the only one call of the deprecated constructor from the tests.
2018-11-19 12:19:52 +01:00
Taiki
3bc33f6c3e
Use the parsing status as a way to detect if the IP string represent a valid IPv6 address
2018-10-23 11:25:52 +02:00
Michal Paszta
5b4634a1fe
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-08 14:21:01 +02:00
Seppo Takalo
fa7547abd4
Fix TCPSocket::accept() unittest.
...
accept() is not anymore returning NULL pointer. It was a bug.
2018-09-21 14:23:06 +03:00
Michal Paszta
d740d698ba
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-09-21 14:23:06 +03:00
Michal Paszta
e609e2fc5e
unittests: Check NULL pointer scenario in TCPSocket::recvfrom
2018-09-21 14:23:05 +03:00
Michal Paszta
5a74481a2a
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-09-21 14:23:05 +03:00
Lari-Matias Orjala
3e7ee6c4d1
add auto-naming of unit test suites
2018-09-19 11:10:40 +03:00
Antti Kauppila
2b7a087849
Rebased & fixed
2018-09-17 12:07:43 +03:00
Cruz Monrreal
48d212fe51
Merge pull request #8086 from SeppoTakalo/fix_socketaddr_unittests
...
Fix SocketAddress unittests
2018-09-14 10:34:37 -05:00
Seppo Takalo
7c6f1c38a8
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-11 18:19:11 +03:00
Brian Daniels
0bda46df07
Moving all unit tests to use hyphenated test name
2018-09-10 13:42:51 -05:00
Lari-Matias Orjala
4dde13db6d
Add unit testing framework
2018-08-27 14:32:35 +03:00