OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/ntp_snippets/remote/test_utils.h" | 5 #include "components/ntp_snippets/remote/test_utils.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
| 9 #include "base/memory/ptr_util.h" |
9 #include "components/prefs/pref_registry_simple.h" | 10 #include "components/prefs/pref_registry_simple.h" |
10 #include "components/prefs/testing_pref_service.h" | 11 #include "components/prefs/testing_pref_service.h" |
11 #include "components/signin/core/browser/account_tracker_service.h" | 12 #include "components/signin/core/browser/account_tracker_service.h" |
12 #include "components/signin/core/browser/fake_signin_manager.h" | 13 #include "components/signin/core/browser/fake_signin_manager.h" |
13 #include "components/signin/core/browser/test_signin_client.h" | 14 #include "components/signin/core/browser/test_signin_client.h" |
14 #include "components/signin/core/common/signin_pref_names.h" | 15 #include "components/signin/core/common/signin_pref_names.h" |
15 #include "components/sync/driver/fake_sync_service.h" | 16 #include "components/sync/driver/fake_sync_service.h" |
16 | 17 |
17 namespace ntp_snippets { | 18 namespace ntp_snippets { |
18 namespace test { | 19 namespace test { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 63 |
63 RemoteSuggestionsTestUtils::~RemoteSuggestionsTestUtils() = default; | 64 RemoteSuggestionsTestUtils::~RemoteSuggestionsTestUtils() = default; |
64 | 65 |
65 void RemoteSuggestionsTestUtils::ResetSigninManager() { | 66 void RemoteSuggestionsTestUtils::ResetSigninManager() { |
66 fake_signin_manager_ = base::MakeUnique<FakeSigninManagerBase>( | 67 fake_signin_manager_ = base::MakeUnique<FakeSigninManagerBase>( |
67 signin_client_.get(), account_tracker_.get()); | 68 signin_client_.get(), account_tracker_.get()); |
68 } | 69 } |
69 | 70 |
70 } // namespace test | 71 } // namespace test |
71 } // namespace ntp_snippets | 72 } // namespace ntp_snippets |
OLD | NEW |