Michal Paszta
66c4b131e2
Astyle fixes
2019-10-14 14:22:31 +03:00
Michal Paszta
1706843d7d
[unittests] test for InternetSocket::close blocking
...
Close should not take place in case there is someone reading or writing to the socket.
2019-10-14 14:22:31 +03:00
Michal Paszta
8c3194ac4e
[unittests] Improve coverage
...
For the following classes:
* DTLSSocket
* NetworkInterface
* TLSSocketWrapper
2019-10-14 14:22:31 +03:00
Dominika Maziec
22b6b0fddb
unitests update for tcp and udp
2019-10-14 14:22:31 +03:00
Anna Bridge
ad891d9658
Merge pull request #11548 from AriParkkila/cell-dns-ip
...
Cellular: Fix resolving of DNS server IPv4/6 address
2019-10-07 16:46:47 +01:00
Anna Bridge
eeb033f814
Merge pull request #11357 from kivaisan/offloaded_tlssocket_bg96
...
Offloaded TLSSocket and BG96 support for it
2019-10-03 11:54:32 +01:00
Anna Bridge
ec7a5ee42b
Merge pull request #11486 from ladislas/update-googletest
...
update googletest to v1.8.1
2019-10-03 11:17:29 +01:00
Martin Kojtal
828fd2378a
Merge pull request #11581 from AriParkkila/cell-pdp-cid
...
Cellular: Fix setting of PDP context ID (cid)
2019-10-01 13:32:47 +02:00
Martin Kojtal
c385e141e2
Merge pull request #11535 from AnttiKauppila/DNS_cleanup
...
DNS manual cleanup mechanism added
2019-09-30 15:55:49 +02:00
Ladislas de Toldi
fa217c5bec
Update README with Google Test version 1.8.1
2019-09-30 09:47:44 +02:00
Anna Bridge
e39ba114e1
Merge pull request #11491 from Tharazi97/equeue_chain_problem
...
Equeue chain, add documentation of using equeue_destroy
2019-09-27 16:29:01 +01:00
Ari Parkkila
e449e6dcdc
Cellular: Fix setting of PDP context ID (cid)
2019-09-27 02:09:36 -07:00
Juhani Puurula
b836256701
Speed up unit test build with parallel jobs
2019-09-26 12:14:56 +03:00
Ari Parkkila
8054b8eef8
Cellular: Fix resolving of DNS server IPv4/6 address
2019-09-25 03:16:45 -07:00
Kimmo Vaisanen
6ba0efc969
Cellular: Use more specific error codes for socket open and connect
...
- When calling socket APIs when socket is not open, NSAPI_ERROR_NO_SOCKET will be
returned instead of generic NSAPI_ERROR_DEVICE_ERROR
- If socket_send() is called when connection is not open, NSAPI_ERROR_NO_CONNECTION
will be returned instead of generic NSAPI_ERROR_DEVICE_ERROR
2019-09-25 09:25:33 +03:00
Martin Kojtal
d91ed5fa42
Merge pull request #11495 from kivaisan/improve_cellular_ut
...
Improve cellular unittests
2019-09-24 16:37:02 +02:00
Antti Kauppila
6adc2440a3
DNS manual cleanup mechanism added
2019-09-20 10:20:48 +03:00
Martin Kojtal
1afece7f1b
Merge pull request #11488 from kivaisan/fix_cellular_get_interface_name
...
Cellular: Fix get_interface_name to not include leading zero
2019-09-19 12:43:45 +02:00
Kimmo Vaisanen
da77cdc52e
UT for CellularDevice get/set timeouts methods
2019-09-17 12:56:47 +03:00
Kimmo Vaisanen
ce3d41433e
Fix CellularDevice::shutdown UT
...
As shutdown was overridden in test class, original shutdown() method
was not called at all.
2019-09-17 12:56:47 +03:00
Kimmo Vaisanen
b6ecce0bfb
Add UT for AT_CellularNetwork::is_active_context
2019-09-17 12:56:47 +03:00
Kimmo Vaisanen
02de20acb6
Add UT for CEREG URC handler
2019-09-17 12:56:47 +03:00
Kimmo Vaisanen
5778bc7326
Add possibility to test URC handlers
2019-09-17 12:56:43 +03:00
Kimmo Vaisanen
d83f52a2a1
Improve UT for cellular properties
2019-09-17 12:15:18 +03:00
Kimmo Vaisanen
e824714cd8
Add UT for CellularUtil::hex_to_char and ::hex_str_to_char_str
...
Also added checks for pointer validity.
2019-09-17 12:15:03 +03:00
Kimmo Vaisanen
0b9e80f76e
Unittests for CellularList
2019-09-17 10:45:01 +03:00
int_szyk
dc5b9fba09
Tweak equeue chain tests
...
Changed the order of destroying queues because it is needed to destroy
queues in specified order when they are chained.
2019-09-16 13:35:28 +02:00
Ari Parkkila
823993e7b1
Cellular: Add flow control (IFC) in BG96 AT driver
2019-09-16 03:16:36 -07:00
Kimmo Vaisanen
ab71b2dba8
Cellular: Fix get_interface_name to not include leading zero
...
Multihoming documentation about interface name:
"Two character name string is concatenated with 8 bit value containing index which is incremented on each netif addition"
Cellular uses context id as index and to follow LWIP (LWIP::Interface::get_interface_name), index does not include leading zeros.
2019-09-16 09:59:31 +03:00
Ladislas de Toldi
72be5848ce
update googletest to v1.8.1
2019-09-13 17:55:15 +02:00
Martin Kojtal
66c39e0bca
Merge pull request #11424 from mirelachirica/stack_type_ip_versions
...
Stack type ip versions
2019-09-13 11:46:06 +02:00
Mirela Chirica
ea1b2b8045
Cellular: Stack type based on assigned IP addresses versions
2019-09-12 12:55:33 +03:00
Ari Parkkila
94dcab9d69
Cellular: Add API to clear CellularDevice
...
A new API `CellularDevice::clear()` to clean-up the modem to a default initial state.
Function is virtual so it can be overridden. The default implementation clears all PDP contexts,
but the the first one if that has APN defined as `nsapi.default-cellular-apn`.
CellularStateMachine calls `clear()` to clean-up the modem on initial `connect()`,
if the flag `cellular.clear-on-connect: true` is defined.
2019-09-09 06:14:20 -07:00
Ari Parkkila
cb20277701
Cellular: Fix BG96 power on and connect
2019-09-04 03:24:11 -07:00
Martin Kojtal
aba0760652
Merge pull request #10684 from jarvte/fix_athandler_destr
...
Cellular: fix ATHandler destructor possible crash on delete
2019-09-04 11:52:59 +02:00
Martin Kojtal
e001216b55
Merge pull request #11315 from Patater/psa-crypto-api-1.0b3
...
Update Mbed OS for PSA Crypto API 1.0b3
2019-09-03 09:20:15 +02:00
Teppo Järvelin
753ba8ceb6
Cellular: fix ATHandler destructor possible crash on delete
...
In some multithread cases there is possibility that process_oob function
was called after ATHandler was deleted. Fix is to wait if oob processing
is ongoing.
2019-09-03 09:09:05 +03:00
Maciej Bocianski
b45d6d6a76
queue test: add counter overflow protect
...
without this fix test_equeue_break_no_windup was failing on IAR
2019-08-30 14:04:43 +02:00
Maciej Bocianski
e7e5cd2aa4
equeue tests: add user allocated events tests
2019-08-29 15:02:41 +02:00
Maciej Bocianski
b336f73e77
equeue posix impl: make queue mutex reentrant
2019-08-29 15:02:40 +02:00
Jaeden Amero
6dfd515dd6
crypto: Add Mbed Crypto includes to unit tests
...
Mbed Crypto also supplies include files. Ensure that our unit tests can
find those headers.
2019-08-28 16:38:03 +01:00
Martin Kojtal
6add979210
Merge pull request #10750 from jarvte/eventqueue_cancel_return
...
Changed EventQueue::cancel to return boolean value
2019-08-27 20:50:03 +02:00
Martin Kojtal
a1540c5f77
Merge pull request #11245 from dextero/8bit-sms
...
AT_CellularSMS: allow configuring SMS encoding (7-bit/8-bit) at initialization
2019-08-23 13:51:59 +02:00
Martin Kojtal
5c09ff12ac
Merge pull request #11220 from jarvte/fix_cellular_dns_test
...
Fix cellular dns test with IAR compiled binary
2019-08-22 10:57:22 +02:00
Teppo Järvelin
719117e12c
Fix EventQueue::cancel to return value
2019-08-20 15:56:41 +03:00
Martin Kojtal
181f4f7e93
Merge pull request #11067 from Tharazi97/equeue_tests
...
Add Unittest equeue tests
2019-08-20 10:28:23 +02:00
Martin Kojtal
0b49952b9e
Merge pull request #11249 from dextero/get-sms-zero
...
Make AT_CellularSMS::list_messages support index 0 in SMS inbox
2019-08-20 10:27:57 +02:00
Martin Kojtal
b849bc1e3d
Merge pull request #11201 from mirelachirica/bug_virtual_in_constructor
...
Cellular: Fixed improper AT handler setup through virtual calls in co…
2019-08-20 09:52:28 +02:00
Martin Kojtal
64fb49e4ec
Merge pull request #11169 from dmaziec1/TLSSocketWrapper_recvfrom_modified
...
TLSSocketWrapper::recvfrom sets SocketAddress output variable
2019-08-20 09:41:39 +02:00
Martin Kojtal
a5a2036c65
Merge pull request #11224 from AnttiKauppila/Coverity_fixes
...
Coverity issues fixed
2019-08-20 09:40:20 +02:00