Hi Qihui, could you please review this CL? Thank you!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
virtual void OnUiUpdatedAndAcceptedForSaveAndFill(Might be better to put this method around line62.
And per design, please rename this to `onUpdatedAndAcceptedForSaveAndFill`.
save_card_delegate_->OnUiUpdatedAndAcceptedForSaveAndFill(details);Can it be called by `save_card_delegate()`? I see other usages of this.
details.card_number = u"987654321";Please put a valid fake card number.
// Pass the details from the View Controller down to the ModelAdd period.
// Tests that `onUpdatedAndAcceptedForSaveAndFill:` calls the correspondingRemove.
details.card_number = u"123456789";Can you cover all fields that we care about for our case?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Might be better to put this method around line62.
And per design, please rename this to `onUpdatedAndAcceptedForSaveAndFill`.
Done
save_card_delegate_->OnUiUpdatedAndAcceptedForSaveAndFill(details);Can it be called by `save_card_delegate()`? I see other usages of this.
Done
Please put a valid fake card number.
Done
// Pass the details from the View Controller down to the Modelyiwen qianAdd period.
Done
// Tests that `onUpdatedAndAcceptedForSaveAndFill:` calls the correspondingyiwen qianRemove.
Done
Can you cover all fields that we care about for our case?
Done
details.card_number = u"123456789";yiwen qianSame here.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hi Tommy, could you please review this CL? Thank you!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
save_card_delegate()->OnUiUpdatedAndAcceptedForSaveAndFill(details);To avoid an unnecessary copy here, let's:
(1) change this method to accept `details` by value and not const reference
(2) `std::move(details)` on this line
.WillOnce([&](const payments::PaymentsAutofillClient::
UserProvidedCardSaveAndFillDetails& passed_details) {
EXPECT_EQ(passed_details.card_number, u"5555555555554444");
EXPECT_EQ(passed_details.cardholder_name, u"John Doe");
EXPECT_EQ(passed_details.expiration_date_month, u"12");
EXPECT_EQ(passed_details.expiration_date_year, u"2030");
EXPECT_EQ(passed_details.security_code, u"123");
EXPECT_EQ(passed_details.nickname, u"My Test Card");Rather than using WillOnce to capture and examine the details, consider using a more specific compound matcher instead of `_` -- https://google.github.io/googletest/reference/matchers.html#member-matchers
_saveCardBottomSheetModel->OnUpdatedAndAcceptedForSaveAndFill(details);`std::move` here as well
.WillOnce([&](const autofill::payments::PaymentsAutofillClient::Same as above
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |