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

Side by Side Diff: content/browser/payments/site_per_process_payments_browsertest.cc

Issue 2546143002: [DO NOT SUBMIT] Add payments browsertest for site-per-process (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | content/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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/command_line.h"
6 #include "base/strings/stringprintf.h"
7 #include "base/strings/utf_string_conversions.h"
8 #include "build/build_config.h"
9 #include "content/browser/accessibility/browser_accessibility.h"
10 #include "content/browser/accessibility/browser_accessibility_manager.h"
11 #include "content/browser/accessibility/browser_accessibility_state_impl.h"
12 #include "content/browser/frame_host/cross_process_frame_connector.h"
13 #include "content/browser/frame_host/frame_tree.h"
14 #include "content/browser/frame_host/render_frame_proxy_host.h"
15 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
16 #include "content/browser/renderer_host/render_view_host_impl.h"
17 #include "content/browser/site_per_process_browsertest.h"
18 #include "content/browser/web_contents/web_contents_impl.h"
19 #include "content/public/browser/notification_observer.h"
20 #include "content/public/browser/notification_service.h"
21 #include "content/public/browser/notification_types.h"
22 #include "content/public/browser/web_contents_observer.h"
23 #include "content/public/common/content_switches.h"
24 #include "content/public/test/browser_test_utils.h"
25 #include "content/public/test/content_browser_test.h"
26 #include "content/public/test/content_browser_test_utils.h"
27 #include "content/public/test/test_utils.h"
28 #include "content/shell/browser/shell.h"
29 #include "content/test/accessibility_browser_test_utils.h"
30 #include "content/test/content_browser_test_utils_internal.h"
31 #include "net/dns/mock_host_resolver.h"
32 #include "net/test/embedded_test_server/embedded_test_server.h"
33 #include "url/gurl.h"
34 #include "url/url_constants.h"
35
36 namespace content {
37
38 class SitePerProcessPaymentsBrowserTest : public SitePerProcessBrowserTest {
39 public:
40 SitePerProcessPaymentsBrowserTest() {}
41 ~SitePerProcessPaymentsBrowserTest() override {}
42
43 private:
44 void SetUpCommandLine(base::CommandLine* command_line) override {
45 SitePerProcessBrowserTest::SetUpCommandLine(command_line);
46 command_line->AppendSwitch("enable-experimental-web-platform-features");
47 command_line->AppendSwitch("site-per-process");
48 }
49
50 DISALLOW_COPY_AND_ASSIGN(SitePerProcessPaymentsBrowserTest);
51 };
52
53 IN_PROC_BROWSER_TEST_F(SitePerProcessPaymentsBrowserTest,
54 IframePaymentRequestDoesNotCrash) {
55 net::EmbeddedTestServer https_server(net::EmbeddedTestServer::TYPE_HTTPS);
56 https_server.ServeFilesFromSourceDirectory("content/test/data");
57 SetupCrossSiteRedirector(&https_server);
58 ASSERT_TRUE(https_server.Start());
59
60 EXPECT_TRUE(NavigateToURL(
61 shell(),
62 GURL(https_server.GetURL("example.test", "/payment-request-main.html"))));
63 }
64
65 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698