| Index: components/autofill/core/browser/autofill_common_test.h
|
| diff --git a/components/autofill/core/browser/autofill_common_test.h b/components/autofill/core/browser/autofill_common_test.h
|
| index 8d6a56ff0faca62135a3ed9b0773c79773a4d675..97d53b098fb36529d03b856152a49d209b98f35c 100644
|
| --- a/components/autofill/core/browser/autofill_common_test.h
|
| +++ b/components/autofill/core/browser/autofill_common_test.h
|
| @@ -5,6 +5,10 @@
|
| #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_COMMON_TEST_H_
|
| #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_COMMON_TEST_H_
|
|
|
| +#include "base/memory/scoped_ptr.h"
|
| +
|
| +class PrefService;
|
| +
|
| namespace content {
|
| class BrowserContext;
|
| }
|
| @@ -19,6 +23,13 @@ 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.
|
| +scoped_ptr<PrefService> PrefServiceForTesting();
|
| +
|
| // Provides a quick way to populate a FormField with c-strings.
|
| void CreateTestFormField(const char* label,
|
| const char* name,
|
|
|