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

Unified Diff: chrome/browser/ui/views/payments/payment_request_browsertest_base.h

Issue 2709093006: Adding new shipping address editor view to payment flow. (Closed)
Patch Set: Bot failure fix 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: chrome/browser/ui/views/payments/payment_request_browsertest_base.h
diff --git a/chrome/browser/ui/views/payments/payment_request_browsertest_base.h b/chrome/browser/ui/views/payments/payment_request_browsertest_base.h
index 9ef9c9f7e0f08ecc04a82d307f2229f867482848..ad8dfea1cd8aa9660f9038d4ed179e7f4f077555 100644
--- a/chrome/browser/ui/views/payments/payment_request_browsertest_base.h
+++ b/chrome/browser/ui/views/payments/payment_request_browsertest_base.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_
#define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_
+#include <memory>
+#include <string>
#include <vector>
#include "base/command_line.h"
@@ -39,14 +41,10 @@ namespace payments {
enum class DialogViewID;
class PaymentRequest;
-namespace {
-
ACTION_P(QuitMessageLoop, loop) {
loop->Quit();
}
-} // namespace
-
class PersonalDataLoadedObserverMock
: public autofill::PersonalDataManagerObserver {
public:
@@ -75,9 +73,12 @@ class PaymentRequestBrowserTestBase
void OnDialogOpened() override;
void OnOrderSummaryOpened() override;
void OnPaymentMethodOpened() override;
+ void OnShippingSectionOpened() override;
void OnCreditCardEditorOpened() override;
+ void OnShippingAddressEditorOpened() override;
void OnBackNavigation() override;
void OnContactInfoOpened() override;
+ void OnEditorViewUpdated() override;
// views::WidgetObserver
// Effective way to be warned of all dialog closures.
@@ -94,7 +95,9 @@ class PaymentRequestBrowserTestBase
// associated action to happen.
void OpenOrderSummaryScreen();
void OpenPaymentMethodScreen();
+ void OpenShippingSectionScreen();
void OpenCreditCardEditorScreen();
+ void OpenShippingAddressEditorScreen();
content::WebContents* GetActiveWebContents();
@@ -154,9 +157,12 @@ class PaymentRequestBrowserTestBase
DIALOG_CLOSED,
ORDER_SUMMARY_OPENED,
PAYMENT_METHOD_OPENED,
+ SHIPPING_SECTION_OPENED,
CREDIT_CARD_EDITOR_OPENED,
+ SHIPPING_ADDRESS_EDITOR_OPENED,
BACK_NAVIGATION,
CONTACT_INFO_OPENED,
+ EDITOR_VIEW_UPDATED,
};
// DialogEventObserver is used to wait on specific events that may have

Powered by Google App Engine
This is Rietveld 408576698