Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Side by Side Diff: chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_test_utils.cc

Issue 2701313002: Adds a modal dialog implementation of the settings reset prompt. (Closed)
Patch Set: Fix constness in mock test class Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.cc ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698