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

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

Issue 2815763002: Prevent usage of web payments API over insecure HTTPS. (Closed)
Patch Set: Fix typo 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
(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 "base/macros.h"
6 #include "chrome/browser/ui/views/payments/payment_request_browsertest_base.h"
7 #include "content/public/test/browser_test.h"
8 #include "content/public/test/browser_test_utils.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10
11 namespace payments {
12
13 class PaymentRequestPaymentAppTest : public PaymentRequestBrowserTestBase {
14 protected:
15 PaymentRequestPaymentAppTest()
16 : PaymentRequestBrowserTestBase("/payment_request_bobpay_test.html") {}
17
18 private:
19 DISALLOW_COPY_AND_ASSIGN(PaymentRequestPaymentAppTest);
20 };
21
22 IN_PROC_BROWSER_TEST_F(PaymentRequestPaymentAppTest, ShowNotSupportedError) {
23 ResetEventObserver(DialogEvent::NOT_SUPPORTED_ERROR);
24 ASSERT_TRUE(content::ExecuteScript(GetActiveWebContents(), "buy();"));
25 WaitForObservedEvent();
26 ExpectBodyContains({"NotSupportedError"});
27 }
28
29 } // namespace payments
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698