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

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

Issue 2562873002: [PaymentApp] label field was changed to name field in PaymentAppOption. (Closed)
Patch Set: [WIP] [PaymentApp] label -> name in PaymentAppOption. Created 4 years 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_manager_unittest.cc
diff --git a/content/browser/payments/payment_app_manager_unittest.cc b/content/browser/payments/payment_app_manager_unittest.cc
index d29d395cee097c470bd026ca239f66565289143e..4257a2c9b7d91cb1f77ae2fd7c916430370fda55 100644
--- a/content/browser/payments/payment_app_manager_unittest.cc
+++ b/content/browser/payments/payment_app_manager_unittest.cc
@@ -121,7 +121,7 @@ class PaymentAppManagerTest : public testing::Test {
TEST_F(PaymentAppManagerTest, SetAndGetManifest) {
payments::mojom::PaymentAppOptionPtr option =
payments::mojom::PaymentAppOption::New();
- option->label = "Visa ****";
+ option->name = "Visa ****";
option->id = "payment-app-id";
option->icon = std::string("payment-app-icon");
option->enabled_methods.push_back("visa");
@@ -148,7 +148,7 @@ TEST_F(PaymentAppManagerTest, SetAndGetManifest) {
EXPECT_EQ(read_manifest->label, "Payment App");
ASSERT_EQ(read_manifest->options.size(), 1U);
EXPECT_EQ(read_manifest->options[0]->icon, std::string("payment-app-icon"));
- EXPECT_EQ(read_manifest->options[0]->label, "Visa ****");
+ EXPECT_EQ(read_manifest->options[0]->name, "Visa ****");
EXPECT_EQ(read_manifest->options[0]->id, "payment-app-id");
ASSERT_EQ(read_manifest->options[0]->enabled_methods.size(), 1U);
EXPECT_EQ(read_manifest->options[0]->enabled_methods[0], "visa");

Powered by Google App Engine
This is Rietveld 408576698