| 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 #ifndef COMPONENTS_PAYMENTS_CORE_PAYMENTS_TEST_UTIL_H_ |
| 6 #define COMPONENTS_PAYMENTS_CORE_PAYMENTS_TEST_UTIL_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 class PrefService; |
| 11 |
| 12 namespace payments { |
| 13 |
| 14 // Common utilities shared amongst Payments tests. |
| 15 namespace test { |
| 16 |
| 17 // Return a PrefService that can be used for Payments-related testing in |
| 18 // contexts where the PrefService would otherwise have to be constructed |
| 19 // manually (e.g., in unit tests within Autofill core code). The returned |
| 20 // PrefService has had Autofill preferences registered on its associated |
| 21 // registry. |
| 22 std::unique_ptr<PrefService> PrefServiceForTesting(); |
| 23 |
| 24 } // namespace test |
| 25 } // namespace payments |
| 26 |
| 27 #endif // COMPONENTS_PAYMENTS_CORE_PAYMENTS_TEST_UTIL_H_ |
| OLD | NEW |