Chromium Code Reviews| Index: chrome/browser/apps/guest_view/web_view_browsertest.cc |
| diff --git a/chrome/browser/apps/guest_view/web_view_browsertest.cc b/chrome/browser/apps/guest_view/web_view_browsertest.cc |
| index 39203974b6caf49c2fdfa5ac8601460d4813de67..dcaccea35db3cf195264f59b43c80585f0ad93b9 100644 |
| --- a/chrome/browser/apps/guest_view/web_view_browsertest.cc |
| +++ b/chrome/browser/apps/guest_view/web_view_browsertest.cc |
| @@ -844,6 +844,15 @@ class WebViewTest : public extensions::PlatformAppBrowserTest { |
| content::WebContents* embedder_web_contents_; |
| }; |
| +class WebViewSitePerProcessTest : public extensions::PlatformAppBrowserTest { |
| + protected: |
| + void SetUpCommandLine(base::CommandLine* command_line) override { |
| + command_line->AppendSwitch(switches::kSitePerProcess); |
|
Charlie Reis
2015/05/19 07:12:30
If you're doing this, you can use any try bot. Yo
lazyboy
2015/05/21 23:23:46
I've extracted the test to another CL:
https://chr
|
| + |
| + extensions::PlatformAppBrowserTest::SetUpCommandLine(command_line); |
| + } |
| +}; |
| + |
| class WebViewDPITest : public WebViewTest { |
| protected: |
| void SetUpCommandLine(base::CommandLine* command_line) override { |
| @@ -2711,3 +2720,9 @@ IN_PROC_BROWSER_TEST_F(WebViewTest, AllowTransparencyAndAllowScalingPropagate) { |
| ASSERT_TRUE(guest->allow_transparency()); |
| ASSERT_TRUE(guest->allow_scaling()); |
| } |
| + |
| +IN_PROC_BROWSER_TEST_F(WebViewSitePerProcessTest, PostMessage) { |
| + ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. |
| + ASSERT_TRUE(RunPlatformAppTest("platform_apps/web_view/post_message")) |
| + << message_; |
| +} |