Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
|
Mathieu
2017/04/05 00:02:23
fix
anthonyvd
2017/04/05 02:12:37
Done.
| |
| 3 // // found in the LICENSE file. | |
| 4 | |
| 5 #include "base/strings/utf_string_conversions.h" | |
| 6 #include "chrome/browser/ui/views/payments/payment_request_browsertest_base.h" | |
| 7 #include "components/autofill/core/browser/autofill_test_utils.h" | |
| 8 | |
| 9 namespace payments { | |
| 10 | |
| 11 class CvcUnmaskViewControllerTest : public PaymentRequestBrowserTestBase { | |
| 12 protected: | |
| 13 CvcUnmaskViewControllerTest() | |
| 14 : PaymentRequestBrowserTestBase( | |
| 15 "/payment_request_no_shipping_test.html") {} | |
| 16 | |
| 17 PersonalDataLoadedObserverMock personal_data_observer_; | |
|
Mathieu
2017/04/05 00:02:23
remove?
anthonyvd
2017/04/05 02:12:37
Done.
| |
| 18 | |
| 19 private: | |
| 20 DISALLOW_COPY_AND_ASSIGN(CvcUnmaskViewControllerTest); | |
| 21 }; | |
| 22 | |
| 23 IN_PROC_BROWSER_TEST_F(CvcUnmaskViewControllerTest, CvcSentToResponse) { | |
| 24 autofill::CreditCard card = autofill::test::GetCreditCard(); | |
| 25 AddCreditCard(card); | |
|
Mathieu
2017/04/05 00:02:23
AddCreditCard(autofill::test::GetCreditCard()); /
anthonyvd
2017/04/05 02:12:37
Done.
| |
| 26 | |
| 27 InvokePaymentRequestUI(); | |
| 28 ResetEventObserver(DialogEvent::DIALOG_CLOSED); | |
| 29 PayWithCreditCardAndWait(base::ASCIIToUTF16("012")); | |
| 30 | |
| 31 ExpectBodyContains(std::vector<base::string16>{ | |
| 32 base::UTF8ToUTF16("\"cardSecurityCode\": \"012\"")}); | |
| 33 } | |
| 34 | |
| 35 } // namespace payments | |
| OLD | NEW |