Greentea: Remove deprecated APIs and use chrono
References to time should do so using std::chrono. We reworked tests in
connectivity and drivers to use std::chrono and new APIs in order to
remove deprecation warnings resulting from deprecated API calls.
This required addition of  a macro for test assertions using std::chrono
values.

As host test "timing_drift_auto" expects time values represented as an
integral number of microseconds, we explicitly provide this in place
using "microseconds{TICKER_TIME}.count()" in the relevant ticker tests.
We recognise this is ugly, but thought it best to descriptively convert
from std::chrono to the host test's required representation.

Co-authored-by: Hari Limaye <hari.limaye@arm.com>
ls
1 parent bfe24ce commit 86c2d70a5bbd26d2acc020968b3771d6ddb926ce
@harmut01 harmut01 authored on 19 Mar 2021
Hari Limaye committed on 29 Jul 2021
Showing 3 changed files
View
connectivity/FEATURE_BLE/source/cordio/TESTS/cordio_hci/driver/main.cpp
View
drivers/tests/TESTS/mbed_drivers/lp_ticker/main.cpp
View
drivers/tests/TESTS/mbed_drivers/ticker/main.cpp