clang-tidy: modernize-concat-nested-namespaces (NFC)

This commit is contained in:
Peter Johnson
2020-12-28 01:19:59 -08:00
parent 67e03e625d
commit 6131f4e32b
162 changed files with 324 additions and 656 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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