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

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

Issue 2631133003: [Payments] Introduce basic interactive browsertests for Payment Request (Closed)
Patch Set: Initial Created 3 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include <vector>
6
7 #include "chrome/browser/ui/views/payments/payment_request_interactive_uitest_ba se.h"
8 #include "components/payments/payment_request.h"
9 #include "components/payments/payment_request_web_contents_manager.h"
10
11 namespace payments {
12
13 class PaymentRequestWebContentsManagerTest
14 : public PaymentRequestInteractiveTestBase {
15 protected:
16 PaymentRequestWebContentsManagerTest()
17 : PaymentRequestInteractiveTestBase(
18 "/payment_request_multiple_requests.html") {}
19 };
please use gerrit instead 2017/01/17 18:57:20 Destructor?
Mathieu 2017/01/17 19:23:06 Is there a particular reason I should have one her
please use gerrit instead 2017/01/17 20:41:24 If you don't specify a destructor with "override"
Mathieu 2017/01/17 20:57:47 I put a log statement inside ~PaymentRequestIntera
20
21 // If the page creates multiple PaymentRequest objects, it should not crash.
22 IN_PROC_BROWSER_TEST_F(PaymentRequestWebContentsManagerTest, MultipleRequests) {
23 const std::vector<PaymentRequest*> payment_requests =
24 GetPaymentRequests(GetActiveWebContents());
25 EXPECT_EQ(5U, payment_requests.size());
26 }
27
28 class PaymentRequestNoShippingTest : public PaymentRequestInteractiveTestBase {
29 protected:
30 PaymentRequestNoShippingTest()
31 : PaymentRequestInteractiveTestBase(
32 "/payment_request_no_shipping_test.html") {}
please use gerrit instead 2017/01/17 18:57:20 Destructor?
Mathieu 2017/01/17 19:23:06 see above
33 };
34
35 IN_PROC_BROWSER_TEST_F(PaymentRequestNoShippingTest, OpenPaymentRequestSheet) {
36 InvokePaymentRequestUI();
37 }
38
39 } // namespace payments
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698