Commit 2fc9f6f2 authored by Eric Seckler's avatar Eric Seckler Committed by Commit Bot

tracing: Address TracingControllerAndroid test failures.

Fixes the flakiness of buffer usage / known categories tests by
resolving an accidental race condition. Also restricts disabling
the other two tests to <= kitkat devices since those seem to be
the only ones that show (inexplicable) flakiness.

TBR=yfriedman@chromium.org

Bug: 899894
Change-Id: I0225c1519ea19910492ffb60a242bcc71b2275b4
Reviewed-on: https://chromium-review.googlesource.com/c/1307433Reviewed-by: default avatarEric Seckler <eseckler@chromium.org>
Commit-Queue: Eric Seckler <eseckler@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604209}
parent ef7a7124
......@@ -19,7 +19,7 @@ import org.junit.runner.RunWith;
import org.chromium.base.Callback;
import org.chromium.base.ThreadUtils;
import org.chromium.base.test.BaseJUnit4ClassRunner;
import org.chromium.base.test.util.DisabledTest;
import org.chromium.base.test.util.DisableIf;
import org.chromium.base.test.util.Feature;
import org.chromium.content_public.browser.test.util.CriteriaHelper;
import org.chromium.content_shell_apk.ContentShellActivity;
......@@ -42,7 +42,7 @@ public class TracingControllerAndroidImplTest {
@Test
@MediumTest
@Feature({"GPU"})
@DisabledTest(message = "crbug.com/899894")
@DisableIf.Build(sdk_is_less_than = 21, message = "crbug.com/899894")
public void testTraceFileCreation() throws Exception {
ContentShellActivity activity = mActivityTestRule.launchContentShellWithUrl("about:blank");
mActivityTestRule.waitForActiveShellToBeDoneLoading();
......@@ -76,8 +76,8 @@ public class TracingControllerAndroidImplTest {
private class TestCallback<T> implements Callback<T> {
@Override
public void onResult(T result) {
mWasCalled.open();
mResult = result;
mWasCalled.open();
}
public ConditionVariable mWasCalled = new ConditionVariable();
......@@ -87,7 +87,6 @@ public class TracingControllerAndroidImplTest {
@Test
@MediumTest
@Feature({"GPU"})
@DisabledTest(message = "crbug.com/899894")
public void testGetKnownCategories() throws Exception {
ContentShellActivity activity = mActivityTestRule.launchContentShellWithUrl("about:blank");
mActivityTestRule.waitForActiveShellToBeDoneLoading();
......@@ -108,7 +107,6 @@ public class TracingControllerAndroidImplTest {
@Test
@MediumTest
@Feature({"GPU"})
@DisabledTest(message = "crbug.com/899894")
public void testBufferUsage() throws Exception {
ContentShellActivity activity = mActivityTestRule.launchContentShellWithUrl("about:blank");
mActivityTestRule.waitForActiveShellToBeDoneLoading();
......@@ -131,7 +129,7 @@ public class TracingControllerAndroidImplTest {
@Test
@MediumTest
@Feature({"GPU"})
@DisabledTest(message = "crbug.com/899894")
@DisableIf.Build(sdk_is_less_than = 21, message = "crbug.com/899894")
public void testStopCallbackAndCompression() throws Exception {
ContentShellActivity activity = mActivityTestRule.launchContentShellWithUrl("about:blank");
mActivityTestRule.waitForActiveShellToBeDoneLoading();
......
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