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

Side by Side Diff: content/browser/media/session/media_session_service_impl_browsertest.cc

Issue 2711293003: Media Session: add test for crash with command send on iframe during unload. (Closed)
Patch Set: add comment Created 3 years, 10 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
« 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 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
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