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

Side by Side Diff: base/memory/singleton_unittest.cc

Issue 689553002: Cleanup: Remove unneeded path_service.h includes in base and chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « base/linux_util.cc ('k') | chrome/app_shim/chrome_main_app_mode_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/memory/singleton.h" 6 #include "base/memory/singleton.h"
7 #include "base/path_service.h"
8 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
9 8
10 namespace { 9 namespace {
11 10
12 COMPILE_ASSERT(DefaultSingletonTraits<int>::kRegisterAtExit == true, a); 11 COMPILE_ASSERT(DefaultSingletonTraits<int>::kRegisterAtExit == true, a);
13 12
14 typedef void (*CallbackFunc)(); 13 typedef void (*CallbackFunc)();
15 14
16 class IntSingleton { 15 class IntSingleton {
17 public: 16 public:
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 AlignedTestSingleton<AlignedMemory<128, 128> >* align128 = 278 AlignedTestSingleton<AlignedMemory<128, 128> >* align128 =
280 AlignedTestSingleton<AlignedMemory<128, 128> >::GetInstance(); 279 AlignedTestSingleton<AlignedMemory<128, 128> >::GetInstance();
281 AlignedTestSingleton<AlignedMemory<4096, 4096> >* align4096 = 280 AlignedTestSingleton<AlignedMemory<4096, 4096> >* align4096 =
282 AlignedTestSingleton<AlignedMemory<4096, 4096> >::GetInstance(); 281 AlignedTestSingleton<AlignedMemory<4096, 4096> >::GetInstance();
283 282
284 EXPECT_ALIGNED(align4, 4); 283 EXPECT_ALIGNED(align4, 4);
285 EXPECT_ALIGNED(align32, 32); 284 EXPECT_ALIGNED(align32, 32);
286 EXPECT_ALIGNED(align128, 128); 285 EXPECT_ALIGNED(align128, 128);
287 EXPECT_ALIGNED(align4096, 4096); 286 EXPECT_ALIGNED(align4096, 4096);
288 } 287 }
OLDNEW
« no previous file with comments | « base/linux_util.cc ('k') | chrome/app_shim/chrome_main_app_mode_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698