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

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

Issue 2725623004: [Web Payments] Add the contact info screen. (Closed)
Patch Set: Address comments. 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 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_interactive_uitest_ba se.h" 5 #include "chrome/browser/ui/views/payments/payment_request_interactive_uitest_ba se.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 void PaymentRequestInteractiveTestBase::OnCreditCardEditorOpened() { 92 void PaymentRequestInteractiveTestBase::OnCreditCardEditorOpened() {
93 if (event_observer_) 93 if (event_observer_)
94 event_observer_->Observe(DialogEvent::CREDIT_CARD_EDITOR_OPENED); 94 event_observer_->Observe(DialogEvent::CREDIT_CARD_EDITOR_OPENED);
95 } 95 }
96 96
97 void PaymentRequestInteractiveTestBase::OnBackNavigation() { 97 void PaymentRequestInteractiveTestBase::OnBackNavigation() {
98 if (event_observer_) 98 if (event_observer_)
99 event_observer_->Observe(DialogEvent::BACK_NAVIGATION); 99 event_observer_->Observe(DialogEvent::BACK_NAVIGATION);
100 } 100 }
101 101
102 void PaymentRequestInteractiveTestBase::OnContactInfoOpened() {
103 if (event_observer_)
104 event_observer_->Observe(DialogEvent::CONTACT_INFO_OPENED);
105 }
106
102 void PaymentRequestInteractiveTestBase::OnWidgetDestroyed( 107 void PaymentRequestInteractiveTestBase::OnWidgetDestroyed(
103 views::Widget* widget) { 108 views::Widget* widget) {
104 if (event_observer_) 109 if (event_observer_)
105 event_observer_->Observe(DialogEvent::DIALOG_CLOSED); 110 event_observer_->Observe(DialogEvent::DIALOG_CLOSED);
106 } 111 }
107 112
108 void PaymentRequestInteractiveTestBase::InvokePaymentRequestUI() { 113 void PaymentRequestInteractiveTestBase::InvokePaymentRequestUI() {
109 ResetEventObserver(DialogEvent::DIALOG_OPENED); 114 ResetEventObserver(DialogEvent::DIALOG_OPENED);
110 115
111 content::WebContents* web_contents = GetActiveWebContents(); 116 content::WebContents* web_contents = GetActiveWebContents();
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 301
297 void PaymentRequestInteractiveTestBase::ResetEventObserver(DialogEvent event) { 302 void PaymentRequestInteractiveTestBase::ResetEventObserver(DialogEvent event) {
298 event_observer_ = base::MakeUnique<DialogEventObserver>(event); 303 event_observer_ = base::MakeUnique<DialogEventObserver>(event);
299 } 304 }
300 305
301 void PaymentRequestInteractiveTestBase::WaitForObservedEvent() { 306 void PaymentRequestInteractiveTestBase::WaitForObservedEvent() {
302 event_observer_->Wait(); 307 event_observer_->Wait();
303 } 308 }
304 309
305 } // namespace payments 310 } // namespace payments
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698