| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/payments/core/payments_test_util.h" |
| 6 |
| 7 #include "base/memory/ref_counted.h" |
| 8 #include "components/autofill/core/browser/autofill_test_utils.h" |
| 9 #include "components/payments/core/payment_prefs.h" |
| 10 #include "components/pref_registry/pref_registry_syncable.h" |
| 11 #include "components/prefs/pref_service.h" |
| 12 |
| 13 namespace payments { |
| 14 namespace test { |
| 15 |
| 16 std::unique_ptr<PrefService> PrefServiceForTesting() { |
| 17 scoped_refptr<user_prefs::PrefRegistrySyncable> registry( |
| 18 new user_prefs::PrefRegistrySyncable()); |
| 19 ::payments::RegisterProfilePrefs(registry.get()); |
| 20 return ::autofill::test::PrefServiceForTesting(registry.get()); |
| 21 } |
| 22 |
| 23 } // namespace test |
| 24 } // namespace payments |
| OLD | NEW |