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

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/MultipleVideosTest.java

Issue 1025933002: Convert force video overlay to preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 years, 9 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
Index: android_webview/javatests/src/org/chromium/android_webview/test/MultipleVideosTest.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/MultipleVideosTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/MultipleVideosTest.java
index d0f4775d42da78bcd9d61b3eba567818f1fd76fe..954118d3eedd1c2c18ed1cf5955bd25bce839f5a 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/MultipleVideosTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/MultipleVideosTest.java
@@ -42,8 +42,14 @@ public class MultipleVideosTest extends AwTestBase {
@Feature({"AndroidWebView"})
public void testFirstVideoPausesWhenSecondVideoStarts()
throws Throwable {
- // To test video hole surfaces we must set force-flag before loading page.
- VideoSurfaceViewUtils.forceUseVideoHoleSurfaceView();
+ // To test video hole surfaces we must force video overlay before loading page.
+ getInstrumentation().runOnMainSync(new Runnable() {
+ @Override
+ public void run() {
+ mTestContainerView.getAwContents().getSettings().setForceVideoOverlayForTests(true);
+ }
+ });
+
loadTestPage();
// Play the first video.

Powered by Google App Engine
This is Rietveld 408576698