| 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.
|
|
|