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> |
---|
|
connectivity/FEATURE_BLE/source/cordio/TESTS/cordio_hci/driver/main.cpp |
---|
drivers/tests/TESTS/mbed_drivers/lp_ticker/main.cpp |
---|
drivers/tests/TESTS/mbed_drivers/ticker/main.cpp |
---|