| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_PROFILE_RESETTER_PROFILE_RESETTER_TEST_BASE_H_ | 5 #ifndef CHROME_BROWSER_PROFILE_RESETTER_PROFILE_RESETTER_TEST_BASE_H_ |
| 6 #define CHROME_BROWSER_PROFILE_RESETTER_PROFILE_RESETTER_TEST_BASE_H_ | 6 #define CHROME_BROWSER_PROFILE_RESETTER_PROFILE_RESETTER_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "chrome/browser/profile_resetter/profile_resetter.h" | 9 #include "chrome/browser/profile_resetter/profile_resetter.h" |
| 9 #include "content/public/test/test_utils.h" | 10 #include "content/public/test/test_utils.h" |
| 10 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 11 | 12 |
| 12 // The ProfileResetterMockObject is used to block the thread until | 13 // The ProfileResetterMockObject is used to block the thread until |
| 13 // ProfileResetter::Reset has completed: | 14 // ProfileResetter::Reset has completed: |
| 14 | 15 |
| 15 // ProfileResetterMockObject mock_object; | 16 // ProfileResetterMockObject mock_object; |
| 16 // resetter_->Reset(ProfileResetter::ALL, | 17 // resetter_->Reset(ProfileResetter::ALL, |
| 17 // pointer, | 18 // pointer, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 45 const std::string& prefs); | 46 const std::string& prefs); |
| 46 protected: | 47 protected: |
| 47 testing::StrictMock<ProfileResetterMockObject> mock_object_; | 48 testing::StrictMock<ProfileResetterMockObject> mock_object_; |
| 48 scoped_ptr<ProfileResetter> resetter_; | 49 scoped_ptr<ProfileResetter> resetter_; |
| 49 | 50 |
| 50 private: | 51 private: |
| 51 DISALLOW_COPY_AND_ASSIGN(ProfileResetterTestBase); | 52 DISALLOW_COPY_AND_ASSIGN(ProfileResetterTestBase); |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 #endif // CHROME_BROWSER_PROFILE_RESETTER_PROFILE_RESETTER_TEST_BASE_H_ | 55 #endif // CHROME_BROWSER_PROFILE_RESETTER_PROFILE_RESETTER_TEST_BASE_H_ |
| OLD | NEW |