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/content/payment_app.mojom.h" | 8 #include "components/payments/mojom/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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 RegisterPaymentApp(); | 122 RegisterPaymentApp(); |
123 | 123 |
124 std::vector<int64_t> ids = GetAllPaymentAppIDs(); | 124 std::vector<int64_t> ids = GetAllPaymentAppIDs(); |
125 ASSERT_EQ(1U, ids.size()); | 125 ASSERT_EQ(1U, ids.size()); |
126 | 126 |
127 payments::mojom::PaymentAppResponsePtr response(InvokePaymentApp(ids[0])); | 127 payments::mojom::PaymentAppResponsePtr response(InvokePaymentApp(ids[0])); |
128 ASSERT_EQ("test", response->method_name); | 128 ASSERT_EQ("test", response->method_name); |
129 } | 129 } |
130 | 130 |
131 } // namespace content | 131 } // namespace content |
OLD | NEW |