Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2329)

Unified Diff: base/memory/singleton_unittest.cc

Issue 2670873002: Remove base's ALIGNOF/ALIGNAS in favor of alignof/alignas. (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/memory/singleton.h ('k') | base/metrics/persistent_memory_allocator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/singleton_unittest.cc
diff --git a/base/memory/singleton_unittest.cc b/base/memory/singleton_unittest.cc
index a15145c8747145cb3f6e6774890307cc0fa46794..3a275cb57e9fcb0059707a0bb7a13ef62014c32a 100644
--- a/base/memory/singleton_unittest.cc
+++ b/base/memory/singleton_unittest.cc
@@ -276,17 +276,20 @@ TEST_F(SingletonTest, Alignment) {
// ensure proper alignment of the static data.
AlignedTestSingleton<int32_t>* align4 =
AlignedTestSingleton<int32_t>::GetInstance();
+ AlignedTestSingleton<AlignedMemory<8, 8>>* align8 =
+ AlignedTestSingleton<AlignedMemory<8, 8>>::GetInstance();
+ AlignedTestSingleton<AlignedMemory<16, 16>>* align16 =
+ AlignedTestSingleton<AlignedMemory<16, 16>>::GetInstance();
AlignedTestSingleton<AlignedMemory<32, 32> >* align32 =
AlignedTestSingleton<AlignedMemory<32, 32> >::GetInstance();
- AlignedTestSingleton<AlignedMemory<128, 128> >* align128 =
- AlignedTestSingleton<AlignedMemory<128, 128> >::GetInstance();
- AlignedTestSingleton<AlignedMemory<4096, 4096> >* align4096 =
- AlignedTestSingleton<AlignedMemory<4096, 4096> >::GetInstance();
+ AlignedTestSingleton<AlignedMemory<64, 64>>* align64 =
+ AlignedTestSingleton<AlignedMemory<64, 64>>::GetInstance();
EXPECT_ALIGNED(align4, 4);
+ EXPECT_ALIGNED(align8, 8);
+ EXPECT_ALIGNED(align16, 16);
EXPECT_ALIGNED(align32, 32);
- EXPECT_ALIGNED(align128, 128);
- EXPECT_ALIGNED(align4096, 4096);
+ EXPECT_ALIGNED(align64, 64);
}
} // namespace
« no previous file with comments | « base/memory/singleton.h ('k') | base/metrics/persistent_memory_allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698