| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prom
pt_test_utils.h" | 5 #include "chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prom
pt_test_utils.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "chrome/browser/profile_resetter/brandcoded_default_settings.h" |
| 11 #include "chrome/browser/profile_resetter/resettable_settings_snapshot.h" | 12 #include "chrome/browser/profile_resetter/resettable_settings_snapshot.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prom
pt_model.h" | 14 #include "chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prom
pt_model.h" |
| 14 | 15 |
| 15 namespace safe_browsing { | 16 namespace safe_browsing { |
| 16 | 17 |
| 17 using testing::_; | 18 using testing::_; |
| 18 using testing::NiceMock; | 19 using testing::NiceMock; |
| 19 using testing::Return; | 20 using testing::Return; |
| 20 | 21 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 return SettingsResetPromptModel::CreateForTesting( | 55 return SettingsResetPromptModel::CreateForTesting( |
| 55 profile, std::move(config), | 56 profile, std::move(config), |
| 56 base::MakeUnique<ResettableSettingsSnapshot>(profile), | 57 base::MakeUnique<ResettableSettingsSnapshot>(profile), |
| 57 base::MakeUnique<BrandcodedDefaultSettings>(), | 58 base::MakeUnique<BrandcodedDefaultSettings>(), |
| 58 profile_resetter | 59 profile_resetter |
| 59 ? std::move(profile_resetter) | 60 ? std::move(profile_resetter) |
| 60 : base::MakeUnique<NiceMock<MockProfileResetter>>(profile)); | 61 : base::MakeUnique<NiceMock<MockProfileResetter>>(profile)); |
| 61 } | 62 } |
| 62 | 63 |
| 63 } // namespace safe_browsing | 64 } // namespace safe_browsing |
| OLD | NEW |