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

Side by Side Diff: chrome/browser/ui/views/payments/payment_request_browsertest_base.cc

Issue 2816083002: [WebPayments] Desktop implementation of Contact Editor (Closed)
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/payments/payment_request_browsertest_base.h" 5 #include "chrome/browser/ui/views/payments/payment_request_browsertest_base.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void PaymentRequestBrowserTestBase::OnCreditCardEditorOpened() { 124 void PaymentRequestBrowserTestBase::OnCreditCardEditorOpened() {
125 if (event_observer_) 125 if (event_observer_)
126 event_observer_->Observe(DialogEvent::CREDIT_CARD_EDITOR_OPENED); 126 event_observer_->Observe(DialogEvent::CREDIT_CARD_EDITOR_OPENED);
127 } 127 }
128 128
129 void PaymentRequestBrowserTestBase::OnShippingAddressEditorOpened() { 129 void PaymentRequestBrowserTestBase::OnShippingAddressEditorOpened() {
130 if (event_observer_) 130 if (event_observer_)
131 event_observer_->Observe(DialogEvent::SHIPPING_ADDRESS_EDITOR_OPENED); 131 event_observer_->Observe(DialogEvent::SHIPPING_ADDRESS_EDITOR_OPENED);
132 } 132 }
133 133
134 void PaymentRequestBrowserTestBase::OnContactInfoEditorOpened() {
135 if (event_observer_)
136 event_observer_->Observe(DialogEvent::CONTACT_INFO_EDITOR_OPENED);
137 }
138
134 void PaymentRequestBrowserTestBase::OnBackNavigation() { 139 void PaymentRequestBrowserTestBase::OnBackNavigation() {
135 if (event_observer_) 140 if (event_observer_)
136 event_observer_->Observe(DialogEvent::BACK_NAVIGATION); 141 event_observer_->Observe(DialogEvent::BACK_NAVIGATION);
137 } 142 }
138 143
139 void PaymentRequestBrowserTestBase::OnBackToPaymentSheetNavigation() { 144 void PaymentRequestBrowserTestBase::OnBackToPaymentSheetNavigation() {
140 if (event_observer_) 145 if (event_observer_)
141 event_observer_->Observe(DialogEvent::BACK_TO_PAYMENT_SHEET_NAVIGATION); 146 event_observer_->Observe(DialogEvent::BACK_TO_PAYMENT_SHEET_NAVIGATION);
142 } 147 }
143 148
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 std::list<DialogEvent> event_sequence) { 577 std::list<DialogEvent> event_sequence) {
573 event_observer_ = 578 event_observer_ =
574 base::MakeUnique<DialogEventObserver>(std::move(event_sequence)); 579 base::MakeUnique<DialogEventObserver>(std::move(event_sequence));
575 } 580 }
576 581
577 void PaymentRequestBrowserTestBase::WaitForObservedEvent() { 582 void PaymentRequestBrowserTestBase::WaitForObservedEvent() {
578 event_observer_->Wait(); 583 event_observer_->Wait();
579 } 584 }
580 585
581 } // namespace payments 586 } // namespace payments
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698