Skip to content

Commit

Permalink
♻️ (tests): Functional - move utils namespace to leka::
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Jul 11, 2024
1 parent 6beba5a commit 73fe580
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions tests/functional/include/tests/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace ut = boost::ut;
namespace cfg {

using namespace std::literals;
using namespace leka;

namespace output {

Expand Down
4 changes: 2 additions & 2 deletions tests/functional/include/tests/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "LogKit.h"

namespace utils {
namespace leka::utils {

namespace time {

Expand Down Expand Up @@ -56,4 +56,4 @@ namespace sd {

} // namespace sd

} // namespace utils
} // namespace leka::utils
4 changes: 2 additions & 2 deletions tests/functional/include/tests/utils_sleep.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [] {
Expand Down
3 changes: 2 additions & 1 deletion tests/functional/tests/deep_sleep_log_kit/suite_log_kit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73fe580

Please sign in to comment.