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

Unified Diff: components/payments/content/payment_request_state_unittest.cc

Issue 2860563002: [Payments] Make AutofillPaymentInstrumentTest use test objects (Closed)
Patch Set: Addressed comment Created 3 years, 8 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 | « no previous file | components/payments/core/autofill_payment_instrument_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/content/payment_request_state_unittest.cc
diff --git a/components/payments/content/payment_request_state_unittest.cc b/components/payments/content/payment_request_state_unittest.cc
index 61a645ab443b1c3f08ba409302a32d084b90b139..d882d84ee2c6042532801642743434f02897c39d 100644
--- a/components/payments/content/payment_request_state_unittest.cc
+++ b/components/payments/content/payment_request_state_unittest.cc
@@ -55,8 +55,8 @@ class PaymentRequestStateTest : public testing::Test,
std::vector<mojom::PaymentMethodDataPtr> method_data) {
// The spec will be based on the |options| and |details| passed in.
spec_ = base::MakeUnique<PaymentRequestSpec>(
- std::move(options), std::move(details), std::move(method_data), nullptr,
- "en-US");
+ std::move(options), std::move(details), std::move(method_data),
+ /*observer=*/nullptr, "en-US");
state_ = base::MakeUnique<PaymentRequestState>(
spec_.get(), this, "en-US", &test_personal_data_manager_,
&test_payment_request_delegate_);
@@ -275,7 +275,7 @@ TEST_F(PaymentRequestStateTest, SelectedShippingAddressMessage_Normalized) {
// Make the normalization not be instantaneous.
test_payment_request_delegate()
- ->GetTestAddressNormalizer()
+ ->test_address_normalizer()
->DelayNormalization();
EXPECT_EQ(0, num_on_selected_information_changed_called());
@@ -288,7 +288,7 @@ TEST_F(PaymentRequestStateTest, SelectedShippingAddressMessage_Normalized) {
// Complete the normalization.
test_payment_request_delegate()
- ->GetTestAddressNormalizer()
+ ->test_address_normalizer()
->CompleteAddressNormalization();
EXPECT_EQ(1, num_on_selected_information_changed_called());
EXPECT_FALSE(state()->is_ready_to_pay());
« no previous file with comments | « no previous file | components/payments/core/autofill_payment_instrument_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698