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

Unified Diff: chrome/browser/ui/views/payments/payment_request_browsertest.cc

Issue 2815763002: Prevent usage of web payments API over insecure HTTPS. (Closed)
Patch Set: Self-review 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
Index: chrome/browser/ui/views/payments/payment_request_browsertest.cc
diff --git a/chrome/browser/ui/views/payments/payment_request_browsertest.cc b/chrome/browser/ui/views/payments/payment_request_browsertest.cc
index dd271aa71ca5d630dca0882dfb208f2eae6febfc..2b5d8bbc79be274724de0e0ea904d1c3b7ae9667 100644
--- a/chrome/browser/ui/views/payments/payment_request_browsertest.cc
+++ b/chrome/browser/ui/views/payments/payment_request_browsertest.cc
@@ -118,20 +118,19 @@ IN_PROC_BROWSER_TEST_F(PaymentRequestNoShippingTest, PayWithVisa) {
WaitForObservedEvent();
// The actual structure of the card response is unit-tested.
- ExpectBodyContains(std::vector<base::string16>{
- card.GetRawInfo(autofill::CREDIT_CARD_NUMBER),
- card.GetRawInfo(autofill::CREDIT_CARD_NAME_FULL),
- card.GetRawInfo(autofill::CREDIT_CARD_EXP_MONTH),
- card.GetRawInfo(autofill::CREDIT_CARD_EXP_4_DIGIT_YEAR)});
- ExpectBodyContains(std::vector<base::string16>{
- billing_address.GetRawInfo(autofill::NAME_FIRST),
- billing_address.GetRawInfo(autofill::NAME_LAST),
- billing_address.GetRawInfo(autofill::ADDRESS_HOME_LINE1),
- billing_address.GetRawInfo(autofill::ADDRESS_HOME_LINE2),
- billing_address.GetRawInfo(autofill::ADDRESS_HOME_COUNTRY),
- billing_address.GetRawInfo(autofill::ADDRESS_HOME_ZIP),
- billing_address.GetRawInfo(autofill::ADDRESS_HOME_CITY),
- billing_address.GetRawInfo(autofill::ADDRESS_HOME_STATE)});
+ ExpectBodyContains({card.GetRawInfo(autofill::CREDIT_CARD_NUMBER),
+ card.GetRawInfo(autofill::CREDIT_CARD_NAME_FULL),
+ card.GetRawInfo(autofill::CREDIT_CARD_EXP_MONTH),
+ card.GetRawInfo(autofill::CREDIT_CARD_EXP_4_DIGIT_YEAR)});
+ ExpectBodyContains(
+ {billing_address.GetRawInfo(autofill::NAME_FIRST),
+ billing_address.GetRawInfo(autofill::NAME_LAST),
+ billing_address.GetRawInfo(autofill::ADDRESS_HOME_LINE1),
+ billing_address.GetRawInfo(autofill::ADDRESS_HOME_LINE2),
+ billing_address.GetRawInfo(autofill::ADDRESS_HOME_COUNTRY),
+ billing_address.GetRawInfo(autofill::ADDRESS_HOME_ZIP),
+ billing_address.GetRawInfo(autofill::ADDRESS_HOME_CITY),
+ billing_address.GetRawInfo(autofill::ADDRESS_HOME_STATE)});
}
class PaymentRequestAbortTest : public PaymentRequestBrowserTestBase {

Powered by Google App Engine
This is Rietveld 408576698