diff options
Diffstat (limited to 'base/lazy_instance_unittest.cc')
-rw-r--r-- | base/lazy_instance_unittest.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/base/lazy_instance_unittest.cc b/base/lazy_instance_unittest.cc index de5ea87..cf17a84 100644 --- a/base/lazy_instance_unittest.cc +++ b/base/lazy_instance_unittest.cc @@ -10,11 +10,6 @@ namespace { -class ShadowingAtExitManager : public base::AtExitManager { - public: - ShadowingAtExitManager() : AtExitManager(true) { } -}; - base::AtomicSequenceNumber constructed_seq_(base::LINKER_INITIALIZED); base::AtomicSequenceNumber destructed_seq_(base::LINKER_INITIALIZED); @@ -63,7 +58,7 @@ static base::LazyInstance<ConstructAndDestructLogger> lazy_logger( TEST(LazyInstanceTest, Basic) { { - ShadowingAtExitManager shadow; + base::ShadowingAtExitManager shadow; EXPECT_EQ(0, constructed_seq_.GetNext()); EXPECT_EQ(0, destructed_seq_.GetNext()); @@ -84,7 +79,7 @@ static base::LazyInstance<SlowConstructor> lazy_slow(base::LINKER_INITIALIZED); TEST(LazyInstanceTest, ConstructorThreadSafety) { { - ShadowingAtExitManager shadow; + base::ShadowingAtExitManager shadow; SlowDelegate delegate(&lazy_slow); EXPECT_EQ(0, SlowConstructor::constructed); |