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

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

Issue 2635983002: Revert of EarlGrey tests for Payment Request (base CL) (Closed)
Patch Set: 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 name label from an autofill profile. 16 // Helper function to get the shipping address label from an autofill profile.
17 NSString* NameLabelFromAutofillProfile(autofill::AutofillProfile* profile);
18
19 // Helper function to get the address label from an autofill profile.
20 NSString* AddressLabelFromAutofillProfile(autofill::AutofillProfile* profile); 17 NSString* AddressLabelFromAutofillProfile(autofill::AutofillProfile* profile);
21 18
22 // Helper function that returns a formatted currency string given the value and 19 // Helper function that returns a formatted currency string given the value and
23 // the currency code. 20 // the currency code.
24 NSString* FormattedCurrencyString(NSDecimalNumber* value, 21 NSString* FormattedCurrencyString(NSDecimalNumber* value,
25 NSString* currencyCode); 22 NSString* currencyCode);
26 23
27 // Helper function to get the phone number label from an autofill profile.
28 NSString* PhoneNumberLabelFromAutofillProfile(
29 autofill::AutofillProfile* profile);
30
31 } // namespace payment_request_utils 24 } // namespace payment_request_utils
32 25
33 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_UTILS_H_ 26 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698