diff --git a/tests/functional/include/tests/config.h b/tests/functional/include/tests/config.h index 1416b136a..5c9360d2e 100644 --- a/tests/functional/include/tests/config.h +++ b/tests/functional/include/tests/config.h @@ -15,6 +15,7 @@ namespace ut = boost::ut; namespace cfg { using namespace std::literals; +using namespace leka; namespace output { diff --git a/tests/functional/include/tests/utils.h b/tests/functional/include/tests/utils.h index f6f4078ac..c1115d664 100644 --- a/tests/functional/include/tests/utils.h +++ b/tests/functional/include/tests/utils.h @@ -11,7 +11,7 @@ #include "LogKit.h" -namespace utils { +namespace leka::utils { namespace time { @@ -56,4 +56,4 @@ namespace sd { } // namespace sd -} // namespace utils +} // namespace leka::utils diff --git a/tests/functional/include/tests/utils_sleep.h b/tests/functional/include/tests/utils_sleep.h index e177d8264..32adb8a6d 100644 --- a/tests/functional/include/tests/utils_sleep.h +++ b/tests/functional/include/tests/utils_sleep.h @@ -20,7 +20,7 @@ using namespace std::chrono; -namespace utils::sleep { +namespace leka::utils::sleep { constexpr inline auto SERIAL_FLUSH_TIME_MS = 150ms; constexpr inline auto US_PER_S = 1'000'000; @@ -142,4 +142,4 @@ inline auto get_deep_sleep_over_idle_time_ratio_for_duration(std::chrono::millis return deep_sleep_ratio; } -} // namespace utils::sleep +} // namespace leka::utils::sleep diff --git a/tests/functional/tests/deep_sleep_core_buffered_serial/suite_core_buffered_serial.cpp b/tests/functional/tests/deep_sleep_core_buffered_serial/suite_core_buffered_serial.cpp index 09bff5c23..d532f9ca3 100644 --- a/tests/functional/tests/deep_sleep_core_buffered_serial/suite_core_buffered_serial.cpp +++ b/tests/functional/tests/deep_sleep_core_buffered_serial/suite_core_buffered_serial.cpp @@ -9,9 +9,9 @@ #include "tests/utils.h" #include "tests/utils_sleep.h" +using namespace std::chrono; using namespace leka; using namespace boost::ut; -using namespace std::chrono; using namespace boost::ut::bdd; suite suite_core_buffered_serial = [] { diff --git a/tests/functional/tests/deep_sleep_core_lcd/suite_core_lcd.cpp b/tests/functional/tests/deep_sleep_core_lcd/suite_core_lcd.cpp index 27541f16d..59ebfbed6 100644 --- a/tests/functional/tests/deep_sleep_core_lcd/suite_core_lcd.cpp +++ b/tests/functional/tests/deep_sleep_core_lcd/suite_core_lcd.cpp @@ -21,9 +21,9 @@ #include "tests/utils.h" #include "tests/utils_sleep.h" +using namespace std::chrono; using namespace leka; using namespace boost::ut; -using namespace std::chrono; using namespace boost::ut::bdd; auto backlight = CorePwm {SCREEN_BACKLIGHT_PWM}; diff --git a/tests/functional/tests/deep_sleep_core_motor/suite_core_motor.cpp b/tests/functional/tests/deep_sleep_core_motor/suite_core_motor.cpp index 07417bead..df146ae49 100644 --- a/tests/functional/tests/deep_sleep_core_motor/suite_core_motor.cpp +++ b/tests/functional/tests/deep_sleep_core_motor/suite_core_motor.cpp @@ -8,9 +8,9 @@ #include "tests/utils.h" #include "tests/utils_sleep.h" +using namespace std::chrono; using namespace leka; using namespace boost::ut; -using namespace std::chrono; using namespace boost::ut::bdd; suite suite_core_motor = [] { diff --git a/tests/functional/tests/deep_sleep_core_pwm/suite_core_pwm.cpp b/tests/functional/tests/deep_sleep_core_pwm/suite_core_pwm.cpp index eb0eacc9f..7f23a637e 100644 --- a/tests/functional/tests/deep_sleep_core_pwm/suite_core_pwm.cpp +++ b/tests/functional/tests/deep_sleep_core_pwm/suite_core_pwm.cpp @@ -9,9 +9,9 @@ #include "tests/utils.h" #include "tests/utils_sleep.h" +using namespace std::chrono; using namespace leka; using namespace boost::ut; -using namespace std::chrono; using namespace boost::ut::bdd; suite suite_core_pwm = [] { diff --git a/tests/functional/tests/deep_sleep_log_kit/suite_log_kit.cpp b/tests/functional/tests/deep_sleep_log_kit/suite_log_kit.cpp index 9e615a26e..324671656 100644 --- a/tests/functional/tests/deep_sleep_log_kit/suite_log_kit.cpp +++ b/tests/functional/tests/deep_sleep_log_kit/suite_log_kit.cpp @@ -8,8 +8,9 @@ #include "tests/utils.h" #include "tests/utils_sleep.h" -using namespace boost::ut; using namespace std::chrono; +using namespace leka; +using namespace boost::ut; using namespace boost::ut::bdd; suite suite_log_kit = [] { diff --git a/tests/functional/tests/deep_sleep_mbed_hal/suite_mbed_hal.cpp b/tests/functional/tests/deep_sleep_mbed_hal/suite_mbed_hal.cpp index 442cb6728..e620b825e 100644 --- a/tests/functional/tests/deep_sleep_mbed_hal/suite_mbed_hal.cpp +++ b/tests/functional/tests/deep_sleep_mbed_hal/suite_mbed_hal.cpp @@ -8,8 +8,9 @@ #include "tests/utils.h" #include "tests/utils_sleep.h" -using namespace boost::ut; using namespace std::chrono; +using namespace leka; +using namespace boost::ut; using namespace boost::ut::bdd; // ? tests inspired from https://github.com/ARMmbed/mbed-os