Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Unified Diff: components/autofill/core/browser/autofill_test_utils.h

Issue 2970013003: [Payment Request] Displays appropriate footer if first transaction completed (Closed)
Patch Set: Addressed comments + rebase Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698