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

Side by Side Diff: chrome/browser/ui/views/payments/cvc_unmask_view_controller_browsertest.cc

Issue 2779283002: [Web Payments] Implement the CVC Unmask dialog. (Closed)
Patch Set: BUILD 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 unified diff | Download patch
OLDNEW
(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
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 private:
18 DISALLOW_COPY_AND_ASSIGN(CvcUnmaskViewControllerTest);
19 };
20
21 IN_PROC_BROWSER_TEST_F(CvcUnmaskViewControllerTest, CvcSentToResponse) {
22 AddCreditCard(autofill::test::GetCreditCard()); // Visa.
23
24 InvokePaymentRequestUI();
25 ResetEventObserver(DialogEvent::DIALOG_CLOSED);
26 PayWithCreditCardAndWait(base::ASCIIToUTF16("012"));
27
28 ExpectBodyContains(std::vector<base::string16>{
29 base::UTF8ToUTF16("\"cardSecurityCode\": \"012\"")});
30 }
31
32 } // namespace payments
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698