| Index: ios/chrome/browser/ui/payments/shipping_option_selection_coordinator_unittest.mm
|
| diff --git a/ios/chrome/browser/ui/payments/shipping_option_selection_coordinator_unittest.mm b/ios/chrome/browser/ui/payments/shipping_option_selection_coordinator_unittest.mm
|
| index f11631fcc5938d0670e5dcbc7490476d5c57affe..e29cd30672e9dfcd6e8b0da737db6551d068c181 100644
|
| --- a/ios/chrome/browser/ui/payments/shipping_option_selection_coordinator_unittest.mm
|
| +++ b/ios/chrome/browser/ui/payments/shipping_option_selection_coordinator_unittest.mm
|
| @@ -11,11 +11,13 @@
|
| #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 "ios/chrome/browser/browser_state/test_chrome_browser_state.h"
|
| #include "ios/chrome/browser/payments/payment_request.h"
|
| #include "ios/chrome/browser/payments/payment_request_test_util.h"
|
| #include "ios/chrome/browser/payments/test_payment_request.h"
|
| #import "ios/chrome/browser/ui/payments/payment_request_selector_view_controller.h"
|
| #include "ios/web/public/payments/payment_request.h"
|
| +#import "ios/web/public/test/fakes/test_web_state.h"
|
| #include "ios/web/public/test/test_web_thread_bundle.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "testing/platform_test.h"
|
| @@ -30,15 +32,20 @@ class PaymentRequestShippingOptionSelectionCoordinatorTest
|
| : public PlatformTest {
|
| protected:
|
| PaymentRequestShippingOptionSelectionCoordinatorTest() {
|
| + TestChromeBrowserState::Builder test_cbs_builder;
|
| + chrome_browser_state_ = test_cbs_builder.Build();
|
| +
|
| payment_request_ = base::MakeUnique<payments::TestPaymentRequest>(
|
| payment_request_test_util::CreateTestWebPaymentRequest(),
|
| - &personal_data_manager_);
|
| + chrome_browser_state_.get(), &web_state_, &personal_data_manager_);
|
| }
|
|
|
| base::test::ScopedTaskEnvironment scoped_task_evironment_;
|
|
|
| + web::TestWebState web_state_;
|
| autofill::TestPersonalDataManager personal_data_manager_;
|
| std::unique_ptr<payments::TestPaymentRequest> payment_request_;
|
| + std::unique_ptr<TestChromeBrowserState> chrome_browser_state_;
|
| };
|
|
|
| // Tests that invoking start and stop on the coordinator presents and dismisses
|
|
|