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

Unified Diff: ios/web/payments/payment_request_unittest.cc

Issue 2797833002: [Payments] base::string16 -> std::string in PaymentMethodData (Closed)
Patch Set: addressed comments Created 3 years, 8 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 | « ios/chrome/browser/payments/payment_request_util.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/payments/payment_request_unittest.cc
diff --git a/ios/web/payments/payment_request_unittest.cc b/ios/web/payments/payment_request_unittest.cc
index a331013b61ee10bc330e21d5c5663bba358573e7..284f0dcd3200ce3a83ef48a15691ba3553074bfa 100644
--- a/ios/web/payments/payment_request_unittest.cc
+++ b/ios/web/payments/payment_request_unittest.cc
@@ -208,8 +208,8 @@ TEST(PaymentRequestTest, ParsingFullyPopulatedRequestDictionarySucceeds) {
expected_request.details.error = base::ASCIIToUTF16("Error in details");
payments::PaymentMethodData method_data;
- std::vector<base::string16> supported_methods;
- supported_methods.push_back(base::ASCIIToUTF16("Visa"));
+ std::vector<std::string> supported_methods;
+ supported_methods.push_back("Visa");
method_data.supported_methods = supported_methods;
expected_request.method_data.push_back(method_data);
@@ -581,7 +581,7 @@ TEST(PaymentRequestTest, PaymentRequestEquality) {
EXPECT_EQ(request1, request2);
payments::PaymentMethodData method_datum;
- method_datum.data = base::ASCIIToUTF16("{merchantId: '123456'}");
+ method_datum.data = "{merchantId: '123456'}";
std::vector<payments::PaymentMethodData> method_data1;
method_data1.push_back(method_datum);
request1.method_data = method_data1;
« no previous file with comments | « ios/chrome/browser/payments/payment_request_util.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698