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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/payments/core/payments_test_util.h"
6
7 #include "base/memory/ref_counted.h"
8 #include "components/autofill/core/browser/autofill_test_utils.h"
9 #include "components/payments/core/payment_prefs.h"
10 #include "components/pref_registry/pref_registry_syncable.h"
11 #include "components/prefs/pref_service.h"
12
13 namespace payments {
14 namespace test {
15
16 std::unique_ptr<PrefService> PrefServiceForTesting() {
17 scoped_refptr<user_prefs::PrefRegistrySyncable> registry(
18 new user_prefs::PrefRegistrySyncable());
19 ::payments::RegisterProfilePrefs(registry.get());
20 return ::autofill::test::PrefServiceForTesting(registry.get());
21 }
22
23 } // namespace test
24 } // namespace payments
OLDNEW
« 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