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

Unified Diff: components/payments/core/payments_test_util.cc

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/payments_test_util.h ('k') | ios/chrome/browser/payments/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/core/payments_test_util.cc
diff --git a/components/payments/core/payments_test_util.cc b/components/payments/core/payments_test_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9ee4770c8081782fce5fe59ab1c037b1b509f676
--- /dev/null
+++ b/components/payments/core/payments_test_util.cc
@@ -0,0 +1,24 @@
+// 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.
+
+#include "components/payments/core/payments_test_util.h"
+
+#include "base/memory/ref_counted.h"
+#include "components/autofill/core/browser/autofill_test_utils.h"
+#include "components/payments/core/payment_prefs.h"
+#include "components/pref_registry/pref_registry_syncable.h"
+#include "components/prefs/pref_service.h"
+
+namespace payments {
+namespace test {
+
+std::unique_ptr<PrefService> PrefServiceForTesting() {
+ scoped_refptr<user_prefs::PrefRegistrySyncable> registry(
+ new user_prefs::PrefRegistrySyncable());
+ ::payments::RegisterProfilePrefs(registry.get());
+ return ::autofill::test::PrefServiceForTesting(registry.get());
+}
+
+} // namespace test
+} // namespace payments
« no previous file with comments | « components/payments/core/payments_test_util.h ('k') | ios/chrome/browser/payments/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698