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

Unified Diff: content/browser/payments/payment_app_provider_impl_unittest.cc

Issue 2665583002: PaymentApp: Rename PaymentAppRequestData to PaymentAppRequest. (Closed)
Patch Set: PaymentApp: Rename PaymentAppRequestData to PaymentAppRequest. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/payments/payment_app_provider_impl_unittest.cc
diff --git a/content/browser/payments/payment_app_provider_impl_unittest.cc b/content/browser/payments/payment_app_provider_impl_unittest.cc
index e6e6edf27707e5c89f1a23d680c74aba9c00617a..372908306c1b2abf2b757589cdeb45f2c182eb31 100644
--- a/content/browser/payments/payment_app_provider_impl_unittest.cc
+++ b/content/browser/payments/payment_app_provider_impl_unittest.cc
@@ -51,9 +51,9 @@ class PaymentAppProviderTest : public PaymentAppContentUnitTestBase {
}
void InvokePaymentApp(int64_t registration_id,
- payments::mojom::PaymentAppRequestDataPtr data) {
+ payments::mojom::PaymentAppRequestPtr app_request) {
PaymentAppProviderImpl::GetInstance()->InvokePaymentApp(
- browser_context(), registration_id, std::move(data));
+ browser_context(), registration_id, std::move(app_request));
base::RunLoop().RunUntilIdle();
}
@@ -128,14 +128,14 @@ TEST_F(PaymentAppProviderTest, InvokePaymentAppTest) {
ASSERT_TRUE(called);
ASSERT_EQ(3U, manifests.size());
- payments::mojom::PaymentAppRequestDataPtr data =
- payments::mojom::PaymentAppRequestData::New();
- data->methodData.push_back(payments::mojom::PaymentMethodData::New());
- data->total = payments::mojom::PaymentItem::New();
- data->total->amount = payments::mojom::PaymentCurrencyAmount::New();
+ payments::mojom::PaymentAppRequestPtr app_request =
+ payments::mojom::PaymentAppRequest::New();
+ app_request->methodData.push_back(payments::mojom::PaymentMethodData::New());
+ app_request->total = payments::mojom::PaymentItem::New();
+ app_request->total->amount = payments::mojom::PaymentCurrencyAmount::New();
EXPECT_FALSE(payment_app_invoked());
- InvokePaymentApp(manifests[1].first, std::move(data));
+ InvokePaymentApp(manifests[1].first, std::move(app_request));
ASSERT_TRUE(payment_app_invoked());
EXPECT_EQ(manifests[1].first, last_sw_registration_id());
« no previous file with comments | « content/browser/payments/payment_app_provider_impl.cc ('k') | content/browser/service_worker/embedded_worker_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698