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

Commit bdbde555 authored by Aurimas Liutikas's avatar Aurimas Liutikas
Browse files

Annotate an assortment of coretest with @LargeTest

Non-annotated tests do not run, thus adding @LargeTest to an assortment
of tests that were missing annotations.

Found these classes with:
fn "*Test.java" | xargs grep -L "@LargeTest" | xargs grep -L "@MediumTest" | \
    xargs grep -L "@SmallTest" | sort

Bug: 70846562
Test: make -j80 FrameworksCoreTests
Change-Id: Ifd466251b92728f9bbfa3cbd8fd21d34490f4eb1
parent e1080cfc
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -15,6 +15,7 @@
*/
*/
package android.animation;
package android.animation;


import android.support.test.filters.LargeTest;
import android.test.ActivityInstrumentationTestCase2;
import android.test.ActivityInstrumentationTestCase2;


import java.util.HashSet;
import java.util.HashSet;
@@ -24,6 +25,7 @@ import java.util.concurrent.TimeUnit;


import com.android.frameworks.coretests.R;
import com.android.frameworks.coretests.R;


@LargeTest
public class AnimatorInflaterTest extends ActivityInstrumentationTestCase2<BasicAnimatorActivity>  {
public class AnimatorInflaterTest extends ActivityInstrumentationTestCase2<BasicAnimatorActivity>  {
    Set<Integer> identityHashes = new HashSet<Integer>();
    Set<Integer> identityHashes = new HashSet<Integer>();


+2 −1
Original line number Original line Diff line number Diff line
@@ -17,6 +17,7 @@


package android.animation;
package android.animation;


import android.support.test.filters.LargeTest;
import android.test.ActivityInstrumentationTestCase2;
import android.test.ActivityInstrumentationTestCase2;
import android.test.UiThreadTest;
import android.test.UiThreadTest;
import android.util.StateSet;
import android.util.StateSet;
@@ -27,7 +28,7 @@ import com.android.frameworks.coretests.R;


import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicInteger;



@LargeTest
public class StateListAnimatorTest extends ActivityInstrumentationTestCase2<BasicAnimatorActivity> {
public class StateListAnimatorTest extends ActivityInstrumentationTestCase2<BasicAnimatorActivity> {


    public StateListAnimatorTest() {
    public StateListAnimatorTest() {
+2 −0
Original line number Original line Diff line number Diff line
@@ -22,6 +22,7 @@ import android.content.pm.IPackageManager;
import android.content.pm.PackageInfo;
import android.content.pm.PackageInfo;
import android.os.storage.StorageManager;
import android.os.storage.StorageManager;
import android.os.storage.VolumeInfo;
import android.os.storage.VolumeInfo;
import android.support.test.filters.LargeTest;


import junit.framework.TestCase;
import junit.framework.TestCase;


@@ -34,6 +35,7 @@ import java.util.List;
import static android.os.storage.VolumeInfo.STATE_MOUNTED;
import static android.os.storage.VolumeInfo.STATE_MOUNTED;
import static android.os.storage.VolumeInfo.STATE_UNMOUNTED;
import static android.os.storage.VolumeInfo.STATE_UNMOUNTED;


@LargeTest
public class ApplicationPackageManagerTest extends TestCase {
public class ApplicationPackageManagerTest extends TestCase {
    private static final String sInternalVolPath = "/data";
    private static final String sInternalVolPath = "/data";
    private static final String sAdoptedVolPath = "/mnt/expand/123";
    private static final String sAdoptedVolPath = "/mnt/expand/123";
+2 −0
Original line number Original line Diff line number Diff line
@@ -17,8 +17,10 @@
package android.app;
package android.app;


import android.os.Bundle;
import android.os.Bundle;
import android.support.test.filters.LargeTest;
import android.test.InstrumentationTestCase;
import android.test.InstrumentationTestCase;


@LargeTest
public class InstrumentationTest extends InstrumentationTestCase {
public class InstrumentationTest extends InstrumentationTestCase {


    /**
    /**
+2 −1
Original line number Original line Diff line number Diff line
@@ -27,12 +27,13 @@ import android.os.Bundle;
import android.os.IBinder;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Parcel;
import android.os.UserHandle;
import android.os.UserHandle;
import android.support.test.filters.LargeTest;
import android.test.FlakyTest;
import android.test.FlakyTest;
import android.test.suitebuilder.annotation.Suppress;
import android.util.Log;
import android.util.Log;


import java.util.Arrays;
import java.util.Arrays;


@LargeTest
public class BroadcastTest extends ActivityTestsBase {
public class BroadcastTest extends ActivityTestsBase {
    public static final int BROADCAST_TIMEOUT = 5 * 1000;
    public static final int BROADCAST_TIMEOUT = 5 * 1000;


Loading