| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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 #include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h" | 5 #include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h" |
| 6 #include "chrome/browser/ui/views/payments/payment_request_interactive_uitest_ba
se.h" | 6 #include "chrome/browser/ui/views/payments/payment_request_interactive_uitest_ba
se.h" |
| 7 #include "components/autofill/core/browser/autofill_test_utils.h" | 7 #include "components/autofill/core/browser/autofill_test_utils.h" |
| 8 #include "components/autofill/core/browser/personal_data_manager.h" | 8 #include "components/autofill/core/browser/personal_data_manager.h" |
| 9 #include "components/payments/payment_request.h" | 9 #include "components/payments/content/payment_request.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 11 |
| 12 namespace payments { | 12 namespace payments { |
| 13 | 13 |
| 14 class PaymentMethodViewControllerTest | 14 class PaymentMethodViewControllerTest |
| 15 : public PaymentRequestInteractiveTestBase { | 15 : public PaymentRequestInteractiveTestBase { |
| 16 protected: | 16 protected: |
| 17 PaymentMethodViewControllerTest() | 17 PaymentMethodViewControllerTest() |
| 18 : PaymentRequestInteractiveTestBase( | 18 : PaymentRequestInteractiveTestBase( |
| 19 "/payment_request_no_shipping_test.html") {} | 19 "/payment_request_no_shipping_test.html") {} |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 // Clicking on the second card again should not modify any state. | 121 // Clicking on the second card again should not modify any state. |
| 122 ClickOnDialogViewAndWait(list_view->child_at(1)); | 122 ClickOnDialogViewAndWait(list_view->child_at(1)); |
| 123 | 123 |
| 124 EXPECT_EQ(card2, *request->selected_credit_card()); | 124 EXPECT_EQ(card2, *request->selected_credit_card()); |
| 125 EXPECT_FALSE(checkmark_view->visible()); | 125 EXPECT_FALSE(checkmark_view->visible()); |
| 126 EXPECT_TRUE(checkmark_view2->visible()); | 126 EXPECT_TRUE(checkmark_view2->visible()); |
| 127 } | 127 } |
| 128 | 128 |
| 129 } // namespace payments | 129 } // namespace payments |
| OLD | NEW |