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

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

Issue 2713033004: Layered component for web payments (Closed)
Patch Set: Rebase 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"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "chrome/browser/autofill/personal_data_manager_factory.h" 14 #include "chrome/browser/autofill/personal_data_manager_factory.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/ui/browser.h" 16 #include "chrome/browser/ui/browser.h"
17 #include "chrome/browser/ui/tabs/tab_strip_model.h" 17 #include "chrome/browser/ui/tabs/tab_strip_model.h"
18 #include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h" 18 #include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h"
19 #include "chrome/browser/ui/views/payments/validating_combobox.h" 19 #include "chrome/browser/ui/views/payments/validating_combobox.h"
20 #include "chrome/browser/ui/views/payments/validating_textfield.h" 20 #include "chrome/browser/ui/views/payments/validating_textfield.h"
21 #include "chrome/browser/ui/views/payments/view_stack.h" 21 #include "chrome/browser/ui/views/payments/view_stack.h"
22 #include "chrome/test/base/interactive_test_utils.h" 22 #include "chrome/test/base/interactive_test_utils.h"
23 #include "chrome/test/base/ui_test_utils.h" 23 #include "chrome/test/base/ui_test_utils.h"
24 #include "components/payments/payment_request.h" 24 #include "components/payments/content/payment_request.h"
25 #include "components/payments/payment_request_web_contents_manager.h" 25 #include "components/payments/content/payment_request_web_contents_manager.h"
26 #include "components/web_modal/web_contents_modal_dialog_manager.h" 26 #include "components/web_modal/web_contents_modal_dialog_manager.h"
27 #include "content/public/browser/render_frame_host.h" 27 #include "content/public/browser/render_frame_host.h"
28 #include "content/public/browser/web_contents.h" 28 #include "content/public/browser/web_contents.h"
29 #include "content/public/common/content_switches.h" 29 #include "content/public/common/content_switches.h"
30 #include "content/public/test/browser_test_utils.h" 30 #include "content/public/test/browser_test_utils.h"
31 #include "services/service_manager/public/cpp/interface_registry.h" 31 #include "services/service_manager/public/cpp/interface_registry.h"
32 #include "testing/gtest/include/gtest/gtest.h" 32 #include "testing/gtest/include/gtest/gtest.h"
33 #include "ui/base/test/ui_controls.h" 33 #include "ui/base/test/ui_controls.h"
34 #include "ui/gfx/animation/test_animation_delegate.h" 34 #include "ui/gfx/animation/test_animation_delegate.h"
35 #include "ui/views/controls/label.h" 35 #include "ui/views/controls/label.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 void PaymentRequestInteractiveTestBase::ResetEventObserver(DialogEvent event) { 297 void PaymentRequestInteractiveTestBase::ResetEventObserver(DialogEvent event) {
298 event_observer_ = base::MakeUnique<DialogEventObserver>(event); 298 event_observer_ = base::MakeUnique<DialogEventObserver>(event);
299 } 299 }
300 300
301 void PaymentRequestInteractiveTestBase::WaitForObservedEvent() { 301 void PaymentRequestInteractiveTestBase::WaitForObservedEvent() {
302 event_observer_->Wait(); 302 event_observer_->Wait();
303 } 303 }
304 304
305 } // namespace payments 305 } // namespace payments
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698