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

Unified Diff: Source/web/tests/WebFrameTest.cpp

Issue 1254613003: Let the WebMediaPlayer decide whether to use overlay video. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address Xianzhu's Comments Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/FullscreenController.cpp ('k') | public/platform/WebMediaPlayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/WebFrameTest.cpp
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp
index 8a44450426e568180bf6afe4162bfcdae3be8f28..cf9d5b88ca26050973841ec53b93378f93fc1ff1 100644
--- a/Source/web/tests/WebFrameTest.cpp
+++ b/Source/web/tests/WebFrameTest.cpp
@@ -6558,37 +6558,6 @@ TEST_P(ParameterizedWebFrameTest, FullscreenSubframe)
EXPECT_EQ(viewportWidth, fullscreenLayoutObject->logicalHeight().toInt());
}
-TEST_F(WebFrameTest, FullscreenMediaStreamVideo)
-{
- RuntimeEnabledFeatures::setOverlayFullscreenVideoEnabled(true);
- FakeCompositingWebViewClient client;
- registerMockedHttpURLLoad("fullscreen_video.html");
- FrameTestHelpers::WebViewHelper webViewHelper;
- WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(m_baseURL + "fullscreen_video.html", true, 0, &client, configureAndroid);
- int viewportWidth = 640;
- int viewportHeight = 480;
- client.m_screenInfo.rect.width = viewportWidth;
- client.m_screenInfo.rect.height = viewportHeight;
- webViewImpl->resize(WebSize(viewportWidth, viewportHeight));
- webViewImpl->layout();
-
- // Fake the video element as MediaStream
- RefPtrWillBeRawPtr<NullExecutionContext> context = adoptRefWillBeNoop(new NullExecutionContext());
- MediaStreamRegistry::registry().registerURL(0, toKURL(m_baseURL + "test.webm"), MediaStream::create(context.get()));
- Document* document = toWebLocalFrameImpl(webViewImpl->mainFrame())->frame()->document();
- UserGestureIndicator gesture(DefinitelyProcessingUserGesture);
- Element* videoFullscreen = document->getElementById("video");
- Fullscreen::from(*document).requestFullscreen(*videoFullscreen, Fullscreen::PrefixedRequest);
- webViewImpl->didEnterFullScreen();
- webViewImpl->layout();
-
- // Verify that the video layer is visible in fullscreen.
- DeprecatedPaintLayer* paintLayer = videoFullscreen->layoutObject()->enclosingLayer();
- GraphicsLayer* graphicsLayer = paintLayer->graphicsLayerBacking();
- EXPECT_TRUE(graphicsLayer->contentsAreVisible());
- context->notifyContextDestroyed();
-}
-
TEST_P(ParameterizedWebFrameTest, FullscreenWithTinyViewport)
{
FakeCompositingWebViewClient client;
« no previous file with comments | « Source/web/FullscreenController.cpp ('k') | public/platform/WebMediaPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698