Chromium Code Reviews| Index: chrome/browser/profile_resetter/profile_resetter_test_base.cc |
| diff --git a/chrome/browser/profile_resetter/profile_resetter_test_base.cc b/chrome/browser/profile_resetter/profile_resetter_test_base.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0f092a6bfeae5e2d0ee74fc4e8e4e73dad8b8db2 |
| --- /dev/null |
| +++ b/chrome/browser/profile_resetter/profile_resetter_test_base.cc |
| @@ -0,0 +1,26 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/browser/profile_resetter/profile_resetter.h" |
|
battre
2013/06/20 06:15:57
needed?
vasilii
2013/06/20 13:08:22
Yes, unfortunately. There is a ProfileResetter::~P
|
| +#include "chrome/browser/profile_resetter/profile_resetter_test_base.h" |
|
battre
2013/06/20 06:15:57
this should be the first include line
vasilii
2013/06/20 13:08:22
Done.
|
| + |
| +ProfileResetterMockObject::ProfileResetterMockObject() {} |
| + |
| +ProfileResetterMockObject::~ProfileResetterMockObject() {} |
| + |
| +void ProfileResetterMockObject::RunLoop() { |
| + EXPECT_CALL(*this, Callback()); |
| + runner_ = new content::MessageLoopRunner; |
| + runner_->Run(); |
| +} |
| + |
| +void ProfileResetterMockObject::StopLoop() { |
| + DCHECK(runner_.get()); |
| + Callback(); |
| + runner_->Quit(); |
| +} |
| + |
| +ProfileResetterTestBase::ProfileResetterTestBase() {} |
| + |
| +ProfileResetterTestBase::~ProfileResetterTestBase() {} |