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

Commit 7abbd020 authored by Lyn's avatar Lyn
Browse files

Set up deviceless testing for BaseHeadsUpManagerTest

Reduce test build time by 75%

Deviceless:
2min build
20s test run

On device:
8min build
20s test run

Bug: 315362456
Test: time atest SystemUiRoboTests:BaseHeadsUpManagerTest
Test: time atest SystemUITests:BaseHeadsUpManagerTest
Flag: none

Change-Id: I54402913ef043d0c00d53a08720f20b15875ec16
parent 03d95418
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -46,12 +46,12 @@ import android.content.Intent;
import android.graphics.Region;
import android.os.UserHandle;
import android.service.notification.StatusBarNotification;
import android.testing.AndroidTestingRunner;
import android.testing.TestableLooper;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.test.filters.SmallTest;
import androidx.test.ext.junit.runners.AndroidJUnit4;

import com.android.internal.logging.UiEventLogger;
import com.android.internal.logging.testing.UiEventLoggerFake;
@@ -75,8 +75,8 @@ import org.mockito.junit.MockitoJUnit;
import org.mockito.junit.MockitoRule;

@SmallTest
@RunWith(AndroidTestingRunner.class)
@TestableLooper.RunWithLooper
@RunWith(AndroidJUnit4.class)
public class BaseHeadsUpManagerTest extends SysuiTestCase {
    @Rule
    public MockitoRule rule = MockitoJUnit.rule();