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

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

Issue 2898223002: PaymentHandler: Rename PaymentAppRequest with PaymentRequestEventData. (Closed)
Patch Set: Rename Created 3 years, 7 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 fbc9fcd0a18b28f9893275a9a1388e3976f07449..08f832cf0236c6d8381134ad5d2d05f8e7e88646 100644
--- a/content/browser/payments/payment_app_provider_impl_unittest.cc
+++ b/content/browser/payments/payment_app_provider_impl_unittest.cc
@@ -65,10 +65,10 @@ class PaymentAppProviderTest : public PaymentAppContentUnitTestBase {
}
void InvokePaymentApp(int64_t registration_id,
- payments::mojom::PaymentAppRequestPtr app_request,
+ payments::mojom::PaymentRequestEventDataPtr event_data,
PaymentAppProvider::InvokePaymentAppCallback callback) {
PaymentAppProviderImpl::GetInstance()->InvokePaymentApp(
- browser_context(), registration_id, std::move(app_request), callback);
+ browser_context(), registration_id, std::move(event_data), callback);
base::RunLoop().RunUntilIdle();
}
@@ -97,15 +97,15 @@ TEST_F(PaymentAppProviderTest, InvokePaymentAppTest) {
GetAllPaymentApps(base::Bind(&GetAllPaymentAppsCallback, &apps));
ASSERT_EQ(2U, apps.size());
- payments::mojom::PaymentAppRequestPtr app_request =
- payments::mojom::PaymentAppRequest::New();
- app_request->method_data.push_back(payments::mojom::PaymentMethodData::New());
- app_request->total = payments::mojom::PaymentItem::New();
- app_request->total->amount = payments::mojom::PaymentCurrencyAmount::New();
+ payments::mojom::PaymentRequestEventDataPtr event_data =
+ payments::mojom::PaymentRequestEventData::New();
+ event_data->method_data.push_back(payments::mojom::PaymentMethodData::New());
+ event_data->total = payments::mojom::PaymentItem::New();
+ event_data->total->amount = payments::mojom::PaymentCurrencyAmount::New();
bool called = false;
InvokePaymentApp(apps[GURL("https://hellopay.com/")][0]->registration_id,
- std::move(app_request),
+ std::move(event_data),
base::Bind(&InvokePaymentAppCallback, &called));
ASSERT_TRUE(called);
« 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