diff options
author | 2022-11-16 07:01:18 -0800 | |
---|---|---|
committer | 2022-11-16 07:01:58 -0800 | |
commit | f02e8c04fe4217f97fc8258899a3b072f2bee95f (patch) | |
tree | 9fd90aa0ecd348496227c01d3deb2978a446ca62 /absl/memory/memory_test.cc | |
parent | 5d4715ae38554da6efbd4d7b84022f4fa68f2f2f (diff) |
Minor formatting changes due to internal refactoring
PiperOrigin-RevId: 488930308
Change-Id: Ie620734e2f47df47e4000bc8eb2fff7f52939596
Diffstat (limited to 'absl/memory/memory_test.cc')
-rw-r--r-- | absl/memory/memory_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/absl/memory/memory_test.cc b/absl/memory/memory_test.cc index 8ac856b1..14b8b982 100644 --- a/absl/memory/memory_test.cc +++ b/absl/memory/memory_test.cc @@ -63,6 +63,7 @@ TEST(WrapUniqueTest, WrapUnique) { } EXPECT_EQ(0, DestructorVerifier::instance_count()); } + TEST(MakeUniqueTest, Basic) { std::unique_ptr<std::string> p = absl::make_unique<std::string>(); EXPECT_EQ("", *p); @@ -164,7 +165,7 @@ struct ArrayWatch { } }; -TEST(Make_UniqueTest, Array) { +TEST(MakeUniqueTest, Array) { // Ensure state is clean before we start so that these tests // are order-agnostic. ArrayWatch::allocs().clear(); @@ -175,7 +176,7 @@ TEST(Make_UniqueTest, Array) { EXPECT_THAT(ArrayWatch::allocs(), ElementsAre(5 * sizeof(ArrayWatch))); } -TEST(Make_UniqueTest, NotAmbiguousWithStdMakeUnique) { +TEST(MakeUniqueTest, NotAmbiguousWithStdMakeUnique) { // Ensure that absl::make_unique is not ambiguous with std::make_unique. // In C++14 mode, the below call to make_unique has both types as candidates. struct TakesStdType { |