| OLD | NEW |
| (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/command_line.h" |
| 6 #include "content/public/test/content_browser_test.h" |
| 7 #include "content/public/test/content_browser_test_utils.h" |
| 8 #include "content/shell/browser/shell.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 class MediaSessionServiceImplBrowserTest : public ContentBrowserTest { |
| 13 protected: |
| 14 void SetUpCommandLine(base::CommandLine* command_line) override { |
| 15 ContentBrowserTest::SetUpCommandLine(command_line); |
| 16 command_line->AppendSwitchASCII("--enable-blink-features", "MediaSession"); |
| 17 } |
| 18 }; |
| 19 |
| 20 // Two windows from the same BrowserContext. |
| 21 IN_PROC_BROWSER_TEST_F(MediaSessionServiceImplBrowserTest, |
| 22 CrashMessageOnUnload) { |
| 23 NavigateToURL(shell(), GetTestUrl("media/session", "embedder.html")); |
| 24 // Navigate to a chrome:// URL to avoid render process re-use. |
| 25 NavigateToURL(shell(), GURL("chrome://flags")); |
| 26 // Should not crash. |
| 27 } |
| 28 |
| 29 } // namespace content |
| OLD | NEW |