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

Unified Diff: components/payments/core/payments_test_util.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 | « components/payments/core/DEPS ('k') | components/payments/core/payments_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/core/payments_test_util.h
diff --git a/components/payments/core/payments_test_util.h b/components/payments/core/payments_test_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..811b3956e09fe81e92e8c90bfe14cf31699270e5
--- /dev/null
+++ b/components/payments/core/payments_test_util.h
@@ -0,0 +1,27 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_PAYMENTS_CORE_PAYMENTS_TEST_UTIL_H_
+#define COMPONENTS_PAYMENTS_CORE_PAYMENTS_TEST_UTIL_H_
+
+#include <memory>
+
+class PrefService;
+
+namespace payments {
+
+// Common utilities shared amongst Payments tests.
+namespace test {
+
+// Return a PrefService that can be used for Payments-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();
+
+} // namespace test
+} // namespace payments
+
+#endif // COMPONENTS_PAYMENTS_CORE_PAYMENTS_TEST_UTIL_H_
« no previous file with comments | « components/payments/core/DEPS ('k') | components/payments/core/payments_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698