Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: content/browser/payments/payment_app_provider_impl_unittest.cc

Issue 2713033004: Layered component for web payments (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/payments/payment_app_provider_impl.h ('k') | content/common/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/payments/payment_app_provider_impl.h ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698