OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/at_exit.h" | 5 #include "base/at_exit.h" |
6 #include "base/file_util.h" | |
7 #include "base/memory/singleton.h" | 6 #include "base/memory/singleton.h" |
8 #include "base/path_service.h" | 7 #include "base/path_service.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
10 | 9 |
11 namespace { | 10 namespace { |
12 | 11 |
13 COMPILE_ASSERT(DefaultSingletonTraits<int>::kRegisterAtExit == true, a); | 12 COMPILE_ASSERT(DefaultSingletonTraits<int>::kRegisterAtExit == true, a); |
14 | 13 |
15 typedef void (*CallbackFunc)(); | 14 typedef void (*CallbackFunc)(); |
16 | 15 |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 AlignedTestSingleton<AlignedMemory<128, 128> >* align128 = | 279 AlignedTestSingleton<AlignedMemory<128, 128> >* align128 = |
281 AlignedTestSingleton<AlignedMemory<128, 128> >::GetInstance(); | 280 AlignedTestSingleton<AlignedMemory<128, 128> >::GetInstance(); |
282 AlignedTestSingleton<AlignedMemory<4096, 4096> >* align4096 = | 281 AlignedTestSingleton<AlignedMemory<4096, 4096> >* align4096 = |
283 AlignedTestSingleton<AlignedMemory<4096, 4096> >::GetInstance(); | 282 AlignedTestSingleton<AlignedMemory<4096, 4096> >::GetInstance(); |
284 | 283 |
285 EXPECT_ALIGNED(align4, 4); | 284 EXPECT_ALIGNED(align4, 4); |
286 EXPECT_ALIGNED(align32, 32); | 285 EXPECT_ALIGNED(align32, 32); |
287 EXPECT_ALIGNED(align128, 128); | 286 EXPECT_ALIGNED(align128, 128); |
288 EXPECT_ALIGNED(align4096, 4096); | 287 EXPECT_ALIGNED(align4096, 4096); |
289 } | 288 } |
OLD | NEW |