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

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

Issue 2958333002: [Payments] Implement web payment app manifest (Closed)
Patch Set: rename and comments Created 3 years, 5 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
« no previous file with comments | « content/browser/payments/payment_app_info_fetcher.cc ('k') | content/browser/payments/payment_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/browser/payments/payment_app_info_fetcher.cc ('k') | content/browser/payments/payment_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698