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

Side by Side Diff: ios/chrome/browser/payments/payment_request_utils.h

Issue 2588913002: EarlGrey tests for Payment Request (base CL) (Closed)
Patch Set: Moved the experimental flag back to the BVC Created 3 years, 11 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_UTILS_H_ 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_UTILS_H_
6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_UTILS_H_ 6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_UTILS_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 namespace autofill { 10 namespace autofill {
11 class AutofillProfile; 11 class AutofillProfile;
12 } // namespace autofill 12 } // namespace autofill
13 13
14 namespace payment_request_utils { 14 namespace payment_request_utils {
15 15
16 // Helper function to get the shipping address label from an autofill profile. 16 // Helper function to get the name label from an autofill profile.
17 NSString* NameLabelFromAutofillProfile(autofill::AutofillProfile* profile);
18
19 // Helper function to get the address label from an autofill profile.
17 NSString* AddressLabelFromAutofillProfile(autofill::AutofillProfile* profile); 20 NSString* AddressLabelFromAutofillProfile(autofill::AutofillProfile* profile);
18 21
19 // Helper function that returns a formatted currency string given the value and 22 // Helper function that returns a formatted currency string given the value and
20 // the currency code. 23 // the currency code.
21 NSString* FormattedCurrencyString(NSDecimalNumber* value, 24 NSString* FormattedCurrencyString(NSDecimalNumber* value,
22 NSString* currencyCode); 25 NSString* currencyCode);
23 26
27 // Helper function to get the phone number label from an autofill profile.
28 NSString* PhoneNumberLabelFromAutofillProfile(
29 autofill::AutofillProfile* profile);
30
24 } // namespace payment_request_utils 31 } // namespace payment_request_utils
25 32
26 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_UTILS_H_ 33 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698