Commit 1940f0d7 authored by Xing Liu's avatar Xing Liu Committed by Commit Bot

Download media parser test: Restrict on phone.

On Nexus 7 devices on Android version M, L, K, when decoding H264 video
thumbnail, the OEM decoder may not response, currently it will time out
and fail in 8 seconds.

This CL restricts the H264 test to run on phone. A better solution is
still needed in the future.

Bug: 933074
Change-Id: I6ee62eedf633f63af1b679c2c09a97d1a228443f
Reviewed-on: https://chromium-review.googlesource.com/c/1479278Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Commit-Queue: Xing Liu <xingliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634776}
parent e17c0386
......@@ -17,10 +17,12 @@ import org.chromium.base.ThreadUtils;
import org.chromium.base.test.BaseJUnit4ClassRunner;
import org.chromium.base.test.util.Feature;
import org.chromium.base.test.util.MinAndroidSdkLevel;
import org.chromium.base.test.util.Restriction;
import org.chromium.base.test.util.UrlUtils;
import org.chromium.chrome.browser.test.ChromeBrowserTestRule;
import org.chromium.content_public.browser.test.util.Criteria;
import org.chromium.content_public.browser.test.util.CriteriaHelper;
import org.chromium.ui.test.util.UiRestriction;
import java.io.File;
......@@ -97,6 +99,7 @@ public class DownloadMediaParserTest {
@LargeTest
@Feature({"Download"})
@MinAndroidSdkLevel(Build.VERSION_CODES.LOLLIPOP)
@Restriction(UiRestriction.RESTRICTION_TYPE_PHONE)
/**
* Verify metadata and thumbnail can be retrieved correctly from h264 video file.
* @throws InterruptedException
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment