| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/browser/ui/browser_commands.h" | 9 #include "chrome/browser/ui/browser_commands.h" |
| 10 #include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h" | 10 #include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h" |
| 11 #include "chrome/browser/ui/views/payments/payment_request_interactive_uitest_ba
se.h" | 11 #include "chrome/browser/ui/views/payments/payment_request_interactive_uitest_ba
se.h" |
| 12 #include "chrome/test/base/ui_test_utils.h" | 12 #include "chrome/test/base/ui_test_utils.h" |
| 13 #include "components/payments/payment_request.h" | 13 #include "components/payments/content/payment_request.h" |
| 14 #include "components/payments/payment_request_web_contents_manager.h" | 14 #include "components/payments/content/payment_request_web_contents_manager.h" |
| 15 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 15 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
| 16 #include "content/public/test/browser_test_utils.h" | 16 #include "content/public/test/browser_test_utils.h" |
| 17 | 17 |
| 18 namespace payments { | 18 namespace payments { |
| 19 | 19 |
| 20 class PaymentRequestWebContentsManagerTest | 20 class PaymentRequestWebContentsManagerTest |
| 21 : public PaymentRequestInteractiveTestBase { | 21 : public PaymentRequestInteractiveTestBase { |
| 22 protected: | 22 protected: |
| 23 PaymentRequestWebContentsManagerTest() | 23 PaymentRequestWebContentsManagerTest() |
| 24 : PaymentRequestInteractiveTestBase( | 24 : PaymentRequestInteractiveTestBase( |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 WaitForObservedEvent(); | 116 WaitForObservedEvent(); |
| 117 | 117 |
| 118 // The web-modal dialog should now be closed. | 118 // The web-modal dialog should now be closed. |
| 119 web_modal::WebContentsModalDialogManager* web_contents_modal_dialog_manager = | 119 web_modal::WebContentsModalDialogManager* web_contents_modal_dialog_manager = |
| 120 web_modal::WebContentsModalDialogManager::FromWebContents(web_contents); | 120 web_modal::WebContentsModalDialogManager::FromWebContents(web_contents); |
| 121 EXPECT_FALSE(web_contents_modal_dialog_manager->IsDialogActive()); | 121 EXPECT_FALSE(web_contents_modal_dialog_manager->IsDialogActive()); |
| 122 } | 122 } |
| 123 | 123 |
| 124 } // namespace payments | 124 } // namespace payments |
| OLD | NEW |