| Index: components/autofill/core/browser/autofill_test_utils.h
|
| diff --git a/components/autofill/core/browser/autofill_test_utils.h b/components/autofill/core/browser/autofill_test_utils.h
|
| index e837b49bcd67eefc877c146b0ae803739286bdc2..65817d8d9dc3d63a1a5c4538e22546664fb2ce7a 100644
|
| --- a/components/autofill/core/browser/autofill_test_utils.h
|
| +++ b/components/autofill/core/browser/autofill_test_utils.h
|
| @@ -14,6 +14,10 @@
|
|
|
| class PrefService;
|
|
|
| +namespace user_prefs {
|
| +class PrefRegistrySyncable;
|
| +} // namespace user_prefs
|
| +
|
| namespace autofill {
|
|
|
| class AutofillProfile;
|
| @@ -25,12 +29,14 @@ struct FormFieldData;
|
| // Common utilities shared amongst Autofill tests.
|
| namespace test {
|
|
|
| -// Returns a PrefService that can be used for Autofill-related testing in
|
| -// contexts where the PrefService would otherwise have to be constructed
|
| -// manually (e.g., in unit tests within Autofill core code). The returned
|
| -// PrefService has had Autofill preferences registered on its associated
|
| -// registry.
|
| +// The following methods return a PrefService that can be used for
|
| +// Autofill-related testing in contexts where the PrefService would otherwise
|
| +// have to be constructed manually (e.g., in unit tests within Autofill core
|
| +// code). The returned PrefService has had Autofill preferences registered on
|
| +// its associated registry.
|
| std::unique_ptr<PrefService> PrefServiceForTesting();
|
| +std::unique_ptr<PrefService> PrefServiceForTesting(
|
| + user_prefs::PrefRegistrySyncable* registry);
|
|
|
| // Provides a quick way to populate a FormField with c-strings.
|
| void CreateTestFormField(const char* label,
|
|
|