Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d59baaf authored by TYM Tsai's avatar TYM Tsai
Browse files

Fix contentcapture perf tests not executed

When start running tests, the test tool will search all large test cases.
But the tool cann't find @LargeTest from class parent. Moves @LargeTest to
sub-class.

Bug: 153770130
Test: adb shell am instrument -w -r --no-hidden-api-checks -e debug false \
 -e newRunListenerMode true -e size large -e log true -e timeout_msec 240000 \
 com.android.perftests.contentcapture/androidx.test.runner.AndroidJUnitRunner
Change-Id: I1a276077e754f348cf814c3a3aeb7ee32c48bdda
parent b2991250
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -33,7 +33,6 @@ import android.provider.Settings;
import android.util.Log;

import androidx.annotation.NonNull;
import androidx.test.filters.LargeTest;
import androidx.test.rule.ActivityTestRule;

import com.android.compatibility.common.util.ActivitiesWatcher;
@@ -51,7 +50,6 @@ import org.junit.runners.model.Statement;
/**
 * Base class for all content capture tests.
 */
@LargeTest
public abstract class AbstractContentCapturePerfTestCase {

    private static final String TAG = AbstractContentCapturePerfTestCase.class.getSimpleName();
+3 −0
Original line number Diff line number Diff line
@@ -21,11 +21,14 @@ import static com.android.compatibility.common.util.ActivitiesWatcher.ActivityLi
import android.perftests.utils.BenchmarkState;
import android.view.View;

import androidx.test.filters.LargeTest;

import com.android.compatibility.common.util.ActivitiesWatcher.ActivityWatcher;
import com.android.perftests.contentcapture.R;

import org.junit.Test;

@LargeTest
public class LoginTest extends AbstractContentCapturePerfTestCase {

    @Test