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

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

Issue 2958333002: [Payments] Implement web payment app manifest (Closed)
Patch Set: Created 3 years, 6 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 af91b215d579f2a055e30f3b248f1caf5be4bb4c..beeaa902f29f82898948cac90076962d6d8fd1b5 100644
--- a/content/browser/payments/payment_app_provider_impl_unittest.cc
+++ b/content/browser/payments/payment_app_provider_impl_unittest.cc
@@ -104,12 +104,12 @@ TEST_F(PaymentAppProviderTest, InvokePaymentAppTest) {
event_data->total->amount = payments::mojom::PaymentCurrencyAmount::New();
bool called = false;
- InvokePaymentApp(apps[GURL("https://hellopay.com/")][0]->registration_id,
+ InvokePaymentApp(apps[GURL("https://hellopay.com/")]->registration_id,
std::move(event_data),
base::Bind(&InvokePaymentAppCallback, &called));
ASSERT_TRUE(called);
- EXPECT_EQ(apps[GURL("https://hellopay.com/")][0]->registration_id,
+ EXPECT_EQ(apps[GURL("https://hellopay.com/")]->registration_id,
last_sw_registration_id());
}
@@ -131,8 +131,8 @@ TEST_F(PaymentAppProviderTest, GetAllPaymentAppsTest) {
GetAllPaymentApps(base::Bind(&GetAllPaymentAppsCallback, &apps));
ASSERT_EQ(2U, apps.size());
- ASSERT_EQ(1U, apps[GURL("https://hellopay.com/")].size());
- ASSERT_EQ(2U, apps[GURL("https://bobpay.com/")].size());
+ ASSERT_EQ(1U, apps[GURL("https://hellopay.com/")]->instruments.size());
+ ASSERT_EQ(2U, apps[GURL("https://bobpay.com/")]->instruments.size());
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698