| 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/macros.h" | 6 #include "base/macros.h" |
| 7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 #include "components/payments/payment_app.mojom.h" | 8 #include "components/payments/content/payment_app.mojom.h" |
| 9 #include "content/public/browser/payment_app_provider.h" | 9 #include "content/public/browser/payment_app_provider.h" |
| 10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
| 11 #include "content/public/common/content_switches.h" | 11 #include "content/public/common/content_switches.h" |
| 12 #include "content/public/test/browser_test_utils.h" | 12 #include "content/public/test/browser_test_utils.h" |
| 13 #include "content/public/test/content_browser_test.h" | 13 #include "content/public/test/content_browser_test.h" |
| 14 #include "content/public/test/content_browser_test_utils.h" | 14 #include "content/public/test/content_browser_test_utils.h" |
| 15 #include "content/shell/browser/shell.h" | 15 #include "content/shell/browser/shell.h" |
| 16 #include "net/test/embedded_test_server/embedded_test_server.h" | 16 #include "net/test/embedded_test_server/embedded_test_server.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 18 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 std::vector<int64_t> ids = GetAllPaymentAppIDs(); | 107 std::vector<int64_t> ids = GetAllPaymentAppIDs(); |
| 108 ASSERT_EQ(1U, ids.size()); | 108 ASSERT_EQ(1U, ids.size()); |
| 109 | 109 |
| 110 InvokePaymentApp(ids[0]); | 110 InvokePaymentApp(ids[0]); |
| 111 | 111 |
| 112 ASSERT_EQ("payment_app_window_ready", PopConsoleString()); | 112 ASSERT_EQ("payment_app_window_ready", PopConsoleString()); |
| 113 ASSERT_EQ("payment_app_response", PopConsoleString()); | 113 ASSERT_EQ("payment_app_response", PopConsoleString()); |
| 114 } | 114 } |
| 115 | 115 |
| 116 } // namespace content | 116 } // namespace content |
| OLD | NEW |