| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <cstddef> | 5 #include <cstddef> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "components/payments/payment_app.mojom.h" | 11 #include "components/payments/content/payment_app.mojom.h" |
| 12 #include "content/browser/payments/payment_app_content_unittest_base.h" | 12 #include "content/browser/payments/payment_app_content_unittest_base.h" |
| 13 #include "content/browser/payments/payment_app_provider_impl.h" | 13 #include "content/browser/payments/payment_app_provider_impl.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
| 16 | 16 |
| 17 using payments::mojom::PaymentAppManifestError; | 17 using payments::mojom::PaymentAppManifestError; |
| 18 using payments::mojom::PaymentAppManifestPtr; | 18 using payments::mojom::PaymentAppManifestPtr; |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 | 21 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 EXPECT_FALSE(payment_app_invoked()); | 137 EXPECT_FALSE(payment_app_invoked()); |
| 138 InvokePaymentApp(manifests[1].first, std::move(app_request)); | 138 InvokePaymentApp(manifests[1].first, std::move(app_request)); |
| 139 | 139 |
| 140 ASSERT_TRUE(payment_app_invoked()); | 140 ASSERT_TRUE(payment_app_invoked()); |
| 141 EXPECT_EQ(manifests[1].first, last_sw_registration_id()); | 141 EXPECT_EQ(manifests[1].first, last_sw_registration_id()); |
| 142 EXPECT_EQ(GURL(kPaymentAppInfo[1].scopeUrl), last_sw_scope_url()); | 142 EXPECT_EQ(GURL(kPaymentAppInfo[1].scopeUrl), last_sw_scope_url()); |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace content | 145 } // namespace content |
| OLD | NEW |