Commit 93dace4d authored by Zhuoyu Qian's avatar Zhuoyu Qian Committed by Commit Bot

Rename WTF::{Arena|Tree}TestHelpers namepsace to WTF::{arena|tree}_test_helpers

https://google.github.io/styleguide/cppguide.html#Namespace_Names
> Namespace names are all lower-case.

This CL has no behavior changes.

Bug: 889726
Change-Id: I9dc96c9669ca28719ecda9d571eec0311d014a82
Reviewed-on: https://chromium-review.googlesource.com/c/1329711Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Zhuoyu Qian <zhuoyu.qian@samsung.com>
Cr-Commit-Position: refs/heads/master@{#607150}
parent 76e7dd19
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
namespace WTF { namespace WTF {
using ArenaTestHelpers::TrackedAllocator; using arena_test_helpers::TrackedAllocator;
namespace { namespace {
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
namespace WTF { namespace WTF {
namespace ArenaTestHelpers { namespace arena_test_helpers {
// An allocator for the PODArena which tracks the regions which have // An allocator for the PODArena which tracks the regions which have
// been allocated. // been allocated.
...@@ -65,7 +65,7 @@ class TrackedAllocator final : public PODArena::FastMallocAllocator { ...@@ -65,7 +65,7 @@ class TrackedAllocator final : public PODArena::FastMallocAllocator {
Vector<void*> allocated_regions_; Vector<void*> allocated_regions_;
}; };
} // namespace ArenaTestHelpers } // namespace arena_test_helpers
} // namespace WTF } // namespace WTF
#endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_WTF_POD_ARENA_TEST_HELPERS_H_ #endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_WTF_POD_ARENA_TEST_HELPERS_H_
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
namespace WTF { namespace WTF {
using ArenaTestHelpers::TrackedAllocator; using arena_test_helpers::TrackedAllocator;
namespace { namespace {
......
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
namespace WTF { namespace WTF {
using TreeTestHelpers::InitRandom; using tree_test_helpers::InitRandom;
using TreeTestHelpers::NextRandom; using tree_test_helpers::NextRandom;
#ifndef NDEBUG #ifndef NDEBUG
template <> template <>
......
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
namespace WTF { namespace WTF {
using ArenaTestHelpers::TrackedAllocator; using arena_test_helpers::TrackedAllocator;
using TreeTestHelpers::InitRandom; using tree_test_helpers::InitRandom;
using TreeTestHelpers::NextRandom; using tree_test_helpers::NextRandom;
TEST(PODRedBlackTreeTest, TestTreeAllocatesFromArena) { TEST(PODRedBlackTreeTest, TestTreeAllocatesFromArena) {
scoped_refptr<TrackedAllocator> allocator = TrackedAllocator::Create(); scoped_refptr<TrackedAllocator> allocator = TrackedAllocator::Create();
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <cstdlib> #include <cstdlib>
namespace WTF { namespace WTF {
namespace TreeTestHelpers { namespace tree_test_helpers {
void InitRandom(const int32_t seed) { void InitRandom(const int32_t seed) {
srand(seed); srand(seed);
...@@ -39,5 +39,5 @@ int32_t NextRandom(const int32_t maximum_value) { ...@@ -39,5 +39,5 @@ int32_t NextRandom(const int32_t maximum_value) {
return rand() % maximum_value; return rand() % maximum_value;
} }
} // namespace TreeTestHelpers } // namespace tree_test_helpers
} // namespace WTF } // namespace WTF
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include <stdint.h> #include <stdint.h>
namespace WTF { namespace WTF {
namespace TreeTestHelpers { namespace tree_test_helpers {
// Initializes the pseudo-random number generator with a specific seed. // Initializes the pseudo-random number generator with a specific seed.
void InitRandom(const int32_t seed); void InitRandom(const int32_t seed);
...@@ -44,7 +44,7 @@ void InitRandom(const int32_t seed); ...@@ -44,7 +44,7 @@ void InitRandom(const int32_t seed);
// produce undefined results. // produce undefined results.
int32_t NextRandom(const int32_t maximum_value); int32_t NextRandom(const int32_t maximum_value);
} // namespace TreeTestHelpers } // namespace tree_test_helpers
} // namespace WTF } // namespace WTF
#endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_WTF_POD_TREE_TEST_HELPERS_H_ #endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_WTF_POD_TREE_TEST_HELPERS_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment