Martin Kojtal
1ddfa59ea7
Merge pull request #12463 from kjbracey-arm/sockstats
...
Clean up and optimise socket statistics
2020-04-29 22:16:54 +02:00
Martin Kojtal
4f9d21b16a
Merge pull request #12694 from kivaisan/remove_netsocket_icetea_and_tcpserver
...
Remove netsocket icetea tests and TCPServer
2020-04-29 13:46:44 +02:00
Arto Kinnunen
329c5d8538
Add unittests for added methods
...
Add unit tests for added methods:
-get_rtt_estimate_to_address
-get_stagger_estimate_to_address
2020-04-23 11:58:51 +03:00
Martin Kojtal
8926ea0983
Merge pull request #12763 from kivaisan/fix_athandler_read_string
...
Cellular: Fix ATHandler::read_string to handle delimiter inside string
2020-04-15 09:27:40 +02:00
Kimmo Vaisanen
236054175b
Netsocket: Remove deprecated TCPServer
...
TCPSocket should be used instead.
2020-04-14 12:13:08 +03:00
Kimmo Vaisanen
e776a9bb72
Netsocket: Add get_dns_server API for NetworkInterface
...
With get_dns_server DNS servers can be queried from NetworkInterface object
2020-04-14 12:04:03 +03:00
Martin Kojtal
7fce7f552c
Merge pull request #12572 from rajkan01/waitapi_remove_deprecated
...
Remove mbed wait deprecated APIs
2020-04-09 14:57:46 +02:00
Martin Kojtal
d089c86f09
Merge pull request #12581 from kjbracey-arm/hard_noncopy
...
Fully enforce NonCopyable
2020-04-09 10:13:37 +02:00
Martin Kojtal
149235f731
Merge pull request #12589 from u-blox/disconnect
...
Cellular: Add deativation of context associated with profile
2020-04-09 09:39:27 +02:00
Rajkumar Kanagaraj
83be3f24a5
Remove mbed wait deprecated APIs
2020-04-08 10:35:07 +01:00
Kimmo Vaisanen
584d54e955
Cellular: Fix ATHandler::read_string to handle delimiter inside string
...
For example if input buffer includes:
+CCLK: "20/04/05,15:38:57+12"
read_string return "20/04/05,15:38:57+12" instead of "20/04/05"
2020-04-06 16:28:04 +03:00
Kevin Bracey
874e36e05a
Fully enforce NonCopyable
...
Make NonCopyable fully operational so it gives compile errors in all
build profiles.
2020-03-31 19:01:42 +03:00
Martin Kojtal
dba3962f16
Merge pull request #12570 from kjbracey-arm/nsapics
...
Improve nsapi_create_stack
2020-03-31 16:34:20 +02:00
Martin Kojtal
8b929726e1
Merge pull request #12609 from rajkan01/semwait_remove_deprecation
...
Remove Semaphore deprecated APIs
2020-03-31 10:36:43 +02:00
Martin Kojtal
4c6e59d714
Merge pull request #11629 from kyle-cypress/pr/tdb-bounds-refactor
...
Refactor TDB internal bounds computation
2020-03-30 09:39:15 +02:00
Anna Bridge
009ff7adf3
Merge pull request #12036 from kjbracey-arm/callback_fiddle
...
Callback extension and optimisation
2020-03-27 14:07:20 +00:00
Anna Bridge
2736896fb9
Merge pull request #12706 from hugueskamba/hk_remove_armc5_support_tests
...
Tests: Remove support for ARM Compiler 5
2020-03-27 14:05:26 +00:00
Hugues Kamba
4318a0747f
Tests: Remove support for ARM Compiler 5
...
ARM Compiler 5 is no longer actively supported and was superseded in
Mbed OS by ARM Compiler 6.
2020-03-25 18:22:00 +00:00
Syed Fahimuddin Alavi
c6b6efc456
Added deativation of context associated with profile
...
Added emt method in At cellular context stub file
2020-03-25 16:02:18 +05:00
Kyle Kearney
85d2e8f2f2
Add kvstore/conf to unittest includes
...
The unittests compile DirectAccessDeviceKey.cpp which depends on
kv_config.h, which lives in features/storage/kvstore/conf
2020-03-24 12:36:36 -07:00
Kimmo Vaisanen
62170dd721
Netsocket: Fix SocketAddress stub for new API
2020-03-24 11:05:58 +02:00
Martin Kojtal
4fa9ccacf6
Merge pull request #12652 from jarlamsa/moduletest_filesystemstore
...
Add moduletests for FileSystemStore
2020-03-19 14:46:03 +01:00
Jarno Lamsa
e19cd14ced
Add moduletests for FileSystemStore
...
Baseline for the tests is similar to the TDBStore.
Differing from TDBStore moduletests, FileSystemStore doesn't include
tests for reserved data or corrupting the blockdevice, as it corrupts
the filesystem also.
2020-03-19 12:56:45 +02:00
Jarno Lamsa
6abb58c98b
Add new unittests for TDBStore
...
Add tests for iterators and reserved data.
2020-03-17 08:23:23 +02:00
Jarno Lamsa
8e6b9eebe2
Minor fixes to TDBStore moduletests
2020-03-17 08:21:24 +02:00
Rajkumar Kanagaraj
a6b78c6429
Remove Semaphore deprecated APIs
2020-03-16 09:37:45 -07:00
Kevin Bracey
bb733f1ee8
Callback updates
...
* Optimise clearing by adding `nullptr` overload. This overload means
`Callback(NULL)` or `Callback(0)` will no longer work; users must
use `Callback(nullptr)` or `Callback()`.
* Optimise clearing by not clearing storage - increases code size of
comparison, but that is extremely rare.
* Reduce ROM used by trivial functors - share copy/destroy code.
* Config option to force trivial functors - major ROM saving by
eliminating the "operations" table.
* Config option to eliminate comparison altogether - minor ROM saving by
eliminating zero padding.
* Conform more to `std::function` API.
2020-03-11 15:46:03 +02:00
Anna Bridge
d5f034b637
Merge pull request #12319 from maciejbocianski/fix_userallocatedevent_imp
...
Fix userallocatedevent imp
2020-03-11 12:43:17 +00:00
Rajkumar Kanagaraj
3674bd1842
Remove Mutex deprecated API
2020-03-06 09:39:30 -08:00
Kevin Bracey
0cf1fd7811
Remove unnecessary NetworkStack casts
2020-03-05 16:45:36 +02:00
Kevin Bracey
70a6701006
Improve nsapi_create_stack
...
Use tag dispatch to better handle both NetworkInterface and NetworkStack
pointers.
The previous design was intended to avoid ambiguities when presented
with a scenario like
class MyDevice : public NetworkInterface, public NetworkStack {
};
TCPSocket(&MyDevice);
// Need NetworkStack *: use NetworkInterface::get_stack or
// cast to NetworkStack?
But the previous solution didn't actually work as intended. The overload
pair
nsapi_create_stack(NetworkStack *);
// versus
template <class IF>
nsapi_create_stack(IF *);
would only select the first form if passed an exact match -
`NetworkStack *`. If passed a derived class pointer, like `MyDevice *`,
it would select the template.
This meant that an ambiguity for MyDevice was at least avoided, but
in the wrong direction, potentially increasing code size.
But in other cases, the system just didn't work at all - you couldn't
pass a `MyStack *` pointer, unless you cast it to `NetworkStack *`.
Quite a few bits of test code do this.
Add a small bit of tag dispatch to prioritise the cast whenever the
supplied pointer is convertible to `NetworkStack *`.
2020-03-05 16:45:36 +02:00
Kevin Bracey
eb10cc18c5
Optimise SocketStats
...
* Remove unnecessary virtual destructor.
* Use inline empty functions when disabled.
* Remove pointless `const`s from declarations.
2020-03-04 14:54:17 +02:00
Martin Kojtal
eaac84be72
Merge pull request #12467 from kjbracey-arm/nsapics
...
Inline nsapi_create_stack(NetworkStack)
2020-03-03 14:13:28 +00:00
Martin Kojtal
a937d30501
Merge pull request #12511 from paul-szczepanek-arm/patch-1
...
allow reconfiguring a running watchdog
2020-03-03 13:00:45 +00:00
Martin Kojtal
f4df4e75ea
Merge pull request #12487 from kjbracey-arm/override_nsapi
...
C++11-ify virtualisation in netsocket
2020-03-03 09:57:57 +00:00
Paul Szczepanek
59f0acb7b1
drop expected failure from reconfiguring watchdog
2020-03-02 10:53:36 +00:00
Kevin Bracey
d8d35eda9f
C++11-ify virtualisation in netsocket
...
Use `override` and `final` where appropriate, and eliminate unnecessary
`virtual`.
Some other C++11 simplifications.
Reduces code size.
2020-02-28 13:34:18 +02:00
Veijo Pesonen
b575df072f
Removes RSPIF block device driver
...
The driver is not needed by the bootloader anymore.
2020-02-24 16:01:14 +02:00
Anna Bridge
8c17270306
Merge pull request #12480 from 0xc0170/fix_spdx
...
Fix SPDX identifiers and licenses (excluding features and targets)
2020-02-21 16:34:30 +00:00
Kevin Bracey
f40c5616e1
Inline nsapi_create_stack(NetworkStack)
...
The rather fiddly `nsapi_create_stack` template + overloads used during
socket formation don't inline their core, which is the identity operation
for `NetworkStack *` itself. Make code generation easier by having that
core be inline.
2020-02-21 15:13:14 +02:00
Martin Kojtal
8f1bf967d3
Merge pull request #11942 from michalpasztamobica/remove_deprecated_apis
...
IPCore String-based API removal
2020-02-21 12:14:06 +00:00
Martin Kojtal
2d7e1ba943
unittest: fix missing licenses + spdx
2020-02-21 07:01:00 +00:00
Seppo Takalo
b8361e43bd
Fix license headers.
2020-02-20 16:56:30 +02:00
Seppo Takalo
b013bc9563
Add EmulatedSD stubs that allow using files as a BlockDevice
2020-02-20 12:22:16 +02:00
Seppo Takalo
35410a9b53
Add module tests for TDBStore
2020-02-20 12:22:16 +02:00
Martin Kojtal
bac5ffec85
Merge pull request #12398 from michalpasztamobica/block_device_unittests
...
Add BlockDevice unittests and fix issues they revealed
2020-02-14 08:23:06 +00:00
Michal Paszta
34eb432b70
unittests: Fix memory leak in FlashSimBD test
2020-02-13 08:59:39 +02:00
Maciej Bocianski
784393a919
equeue tests update
...
- test periodic user allocated events
- test user allocated events re-posting
- test unnecessary cancels of user allocated events
2020-02-12 14:41:17 +01:00
Michal Paszta
31ce76487f
unittests: BlockDevice unittests improvements
...
Moved the existing BufferedBlockDevice to features/storage unittests and switched it to gmock.
Added gmock-based unit tests to all other BlockDevice classes.
SlicingBlockDevice test left as a module test.
2020-02-10 19:36:52 +02:00
Martin Kojtal
da7c641f17
Merge pull request #12386 from jamesbeyond/unittest-fix
...
TEST: fix a bug in ATCmdParser test
2020-02-10 13:17:51 +00:00