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

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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 void PaymentRequestInteractiveTestBase::OnCreditCardEditorOpened() { 99 void PaymentRequestInteractiveTestBase::OnCreditCardEditorOpened() {
100 if (event_observer_) 100 if (event_observer_)
101 event_observer_->Observe(DialogEvent::CREDIT_CARD_EDITOR_OPENED); 101 event_observer_->Observe(DialogEvent::CREDIT_CARD_EDITOR_OPENED);
102 } 102 }
103 103
104 void PaymentRequestInteractiveTestBase::OnBackNavigation() { 104 void PaymentRequestInteractiveTestBase::OnBackNavigation() {
105 if (event_observer_) 105 if (event_observer_)
106 event_observer_->Observe(DialogEvent::BACK_NAVIGATION); 106 event_observer_->Observe(DialogEvent::BACK_NAVIGATION);
107 } 107 }
108 108
109 void PaymentRequestInteractiveTestBase::OnContactInfoOpened() {
110 if (event_observer_)
111 event_observer_->Observe(DialogEvent::CONTACT_INFO_OPENED);
112 }
113
109 void PaymentRequestInteractiveTestBase::OnWidgetDestroyed( 114 void PaymentRequestInteractiveTestBase::OnWidgetDestroyed(
110 views::Widget* widget) { 115 views::Widget* widget) {
111 if (event_observer_) 116 if (event_observer_)
112 event_observer_->Observe(DialogEvent::DIALOG_CLOSED); 117 event_observer_->Observe(DialogEvent::DIALOG_CLOSED);
113 } 118 }
114 119
115 void PaymentRequestInteractiveTestBase::InvokePaymentRequestUI() { 120 void PaymentRequestInteractiveTestBase::InvokePaymentRequestUI() {
116 ResetEventObserver(DialogEvent::DIALOG_OPENED); 121 ResetEventObserver(DialogEvent::DIALOG_OPENED);
117 122
118 content::WebContents* web_contents = GetActiveWebContents(); 123 content::WebContents* web_contents = GetActiveWebContents();
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 350
346 void PaymentRequestInteractiveTestBase::ResetEventObserver(DialogEvent event) { 351 void PaymentRequestInteractiveTestBase::ResetEventObserver(DialogEvent event) {
347 event_observer_ = base::MakeUnique<DialogEventObserver>(event); 352 event_observer_ = base::MakeUnique<DialogEventObserver>(event);
348 } 353 }
349 354
350 void PaymentRequestInteractiveTestBase::WaitForObservedEvent() { 355 void PaymentRequestInteractiveTestBase::WaitForObservedEvent() {
351 event_observer_->Wait(); 356 event_observer_->Wait();
352 } 357 }
353 358
354 } // namespace payments 359 } // namespace payments
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698