mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
clang-tidy: modernize-concat-nested-namespaces (NFC)
This commit is contained in:
@@ -11,8 +11,7 @@
|
||||
#include "wpi/uv/Loop.h"
|
||||
#include "wpi/uv/Prepare.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
TEST(UvAsyncFunction, Test) {
|
||||
int prepare_cb_called = 0;
|
||||
@@ -262,5 +261,4 @@ TEST(UvAsyncFunction, VoidWaitFor) {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -34,8 +34,7 @@
|
||||
#include "wpi/uv/Loop.h"
|
||||
#include "wpi/uv/Prepare.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
TEST(UvAsync, Test) {
|
||||
std::atomic_int async_cb_called{0};
|
||||
@@ -183,5 +182,4 @@ TEST(UvAsync, DataRef) {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
#include "gtest/gtest.h" // NOLINT(build/include_order)
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
TEST(UvSimpleBufferPool, ConstructDefault) {
|
||||
SimpleBufferPool<> pool;
|
||||
@@ -43,5 +42,4 @@ TEST(UvSimpleBufferPool, ClearRemaining) {
|
||||
ASSERT_EQ(pool.Remaining(), 0u);
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -31,8 +31,7 @@
|
||||
|
||||
#define CONCURRENT_COUNT 10
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
TEST(UvGetAddrInfo, BothNull) {
|
||||
int fail_cb_called = 0;
|
||||
@@ -107,5 +106,4 @@ TEST(UvGetAddrInfo, Concurrent) {
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -29,8 +29,7 @@
|
||||
|
||||
#include "wpi/uv/Loop.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
TEST(UvGetNameInfo, BasicIp4) {
|
||||
int getnameinfo_cbs = 0;
|
||||
@@ -72,5 +71,4 @@ TEST(UvGetNameInfo, BasicIp6) {
|
||||
ASSERT_EQ(getnameinfo_cbs, 1);
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -29,8 +29,7 @@
|
||||
|
||||
#include "wpi/uv/Timer.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
TEST(UvLoop, Walk) {
|
||||
int seen_timer_handle = 0;
|
||||
@@ -67,5 +66,4 @@ TEST(UvLoop, Walk) {
|
||||
ASSERT_EQ(seen_timer_handle, 0);
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
TEST(UvTimer, StartAndStop) {
|
||||
auto loop = Loop::Create();
|
||||
@@ -67,5 +66,4 @@ TEST(UvTimer, Repeat) {
|
||||
loop->Run(); // forces close callback to run
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
Reference in New Issue
Block a user