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

Unified Diff: chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc

Issue 2803443003: [Payments] Added region load failure tolerance and tests to PR editor. (Closed)
Patch Set: Removed unneeded include. 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
Index: chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc
diff --git a/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc b/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc
index 3bd1668953cd3d38edb0deda4cb80698656754b5..914a0df62d76a4864e88e3f9f2869404e47fce00 100644
--- a/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc
+++ b/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc
@@ -18,6 +18,7 @@ TestChromePaymentRequestDelegate::TestChromePaymentRequestDelegate(
views::WidgetObserver* widget_observer,
bool is_incognito)
: ChromePaymentRequestDelegate(web_contents),
+ address_input_provider_(nullptr),
observer_(observer),
widget_observer_(widget_observer),
is_incognito_for_testing_(is_incognito) {}
@@ -38,4 +39,18 @@ bool TestChromePaymentRequestDelegate::IsIncognito() const {
return is_incognito_for_testing_;
}
+std::unique_ptr<const ::i18n::addressinput::Source>
+TestChromePaymentRequestDelegate::GetAddressInputSource() {
+ if (address_input_provider_)
+ return address_input_provider_->GetAddressInputSource();
+ return ChromePaymentRequestDelegate::GetAddressInputSource();
+}
+
+std::unique_ptr<::i18n::addressinput::Storage>
+TestChromePaymentRequestDelegate::GetAddressInputStorage() {
+ if (address_input_provider_)
+ return address_input_provider_->GetAddressInputStorage();
+ return ChromePaymentRequestDelegate::GetAddressInputStorage();
+}
+
} // namespace payments

Powered by Google App Engine
This is Rietveld 408576698