diff options
Diffstat (limited to 'base/lazy_instance_unittest.cc')
-rw-r--r-- | base/lazy_instance_unittest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/lazy_instance_unittest.cc b/base/lazy_instance_unittest.cc index cf17a84..d55f664 100644 --- a/base/lazy_instance_unittest.cc +++ b/base/lazy_instance_unittest.cc @@ -41,7 +41,9 @@ int SlowConstructor::constructed = 0; class SlowDelegate : public base::DelegateSimpleThread::Delegate { public: - SlowDelegate(base::LazyInstance<SlowConstructor>* lazy) : lazy_(lazy) { } + explicit SlowDelegate(base::LazyInstance<SlowConstructor>* lazy) + : lazy_(lazy) {} + virtual void Run() { EXPECT_EQ(12, lazy_->Get().some_int()); EXPECT_EQ(12, lazy_->Pointer()->some_int()); |