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

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

Issue 2811593009: [Payments] move //components/payments/content/*.mojom files to //components/payments/mojom (Closed)
Patch Set: Reland after updating chrome_content_browser_client.cc to fix android build Created 3 years, 8 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
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/content/payment_app.mojom.h" 11 #include "components/payments/mojom/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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 called = false; 142 called = false;
143 InvokePaymentApp(manifests[1].first, std::move(app_request), 143 InvokePaymentApp(manifests[1].first, std::move(app_request),
144 base::Bind(&InvokePaymentAppCallback, &called)); 144 base::Bind(&InvokePaymentAppCallback, &called));
145 ASSERT_TRUE(called); 145 ASSERT_TRUE(called);
146 146
147 EXPECT_EQ(manifests[1].first, last_sw_registration_id()); 147 EXPECT_EQ(manifests[1].first, last_sw_registration_id());
148 EXPECT_EQ(GURL(kPaymentAppInfo[1].scopeUrl), last_sw_scope_url()); 148 EXPECT_EQ(GURL(kPaymentAppInfo[1].scopeUrl), last_sw_scope_url());
149 } 149 }
150 150
151 } // namespace content 151 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/payments/payment_app_database.h ('k') | content/browser/payments/payment_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698