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

Unified Diff: ios/chrome/browser/payments/payment_request_coordinator_unittest.mm

Issue 2733953003: [Payments] Return a basic card response (Closed)
Patch Set: addressed comments from anthony Created 3 years, 9 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: ios/chrome/browser/payments/payment_request_coordinator_unittest.mm
diff --git a/ios/chrome/browser/payments/payment_request_coordinator_unittest.mm b/ios/chrome/browser/payments/payment_request_coordinator_unittest.mm
index 34d951317cd1d8522c9e380db3f0c54d608c3c53..816396f126d67afd7028931b206179346a17cbd6 100644
--- a/ios/chrome/browser/payments/payment_request_coordinator_unittest.mm
+++ b/ios/chrome/browser/payments/payment_request_coordinator_unittest.mm
@@ -10,6 +10,7 @@
#include "components/autofill/core/browser/autofill_profile.h"
#include "components/autofill/core/browser/credit_card.h"
#include "components/autofill/core/browser/test_personal_data_manager.h"
+#include "components/payments/core/payment_address.h"
#include "ios/chrome/browser/payments/payment_request_test_util.h"
#import "ios/chrome/browser/payments/payment_request_view_controller.h"
#import "ios/chrome/test/scoped_key_window.h"
@@ -38,7 +39,7 @@ typedef void (^mock_coordinator_confirm)(PaymentRequestCoordinator*,
web::PaymentResponse);
typedef void (^mock_coordinator_select_shipping_address)(
PaymentRequestCoordinator*,
- web::PaymentAddress);
+ payments::PaymentAddress);
typedef void (^mock_coordinator_select_shipping_option)(
PaymentRequestCoordinator*,
web::PaymentShippingOption);
@@ -56,7 +57,7 @@ typedef void (^mock_coordinator_select_shipping_option)(
}
- (void)paymentRequestCoordinator:(PaymentRequestCoordinator*)coordinator
- didSelectShippingAddress:(web::PaymentAddress)shippingAddress {
+ didSelectShippingAddress:(payments::PaymentAddress)shippingAddress {
return static_cast<mock_coordinator_select_shipping_address>(
[self blockForSelector:_cmd])(coordinator, shippingAddress);
}
@@ -174,7 +175,7 @@ TEST(PaymentRequestCoordinatorTest, DidSelectShippingAddress) {
SEL selector = @selector(paymentRequestCoordinator:didSelectShippingAddress:);
[delegate_mock onSelector:selector
callBlockExpectation:^(PaymentRequestCoordinator* callerCoordinator,
- web::PaymentAddress shippingAddress) {
+ payments::PaymentAddress shippingAddress) {
EXPECT_EQ(base::ASCIIToUTF16("John Mitchell Doe"),
shippingAddress.recipient);
EXPECT_EQ(base::ASCIIToUTF16("Fox"), shippingAddress.organization);
« no previous file with comments | « ios/chrome/browser/payments/payment_request_coordinator.mm ('k') | ios/chrome/browser/payments/payment_request_manager.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698