Running various lifecycle-related tests on main thread
- Latest AndroidX drop changes the requirements for observers
which must be registered on the main thread
Bug: 162884675
Test: atest SystemUITests passes locally
Change-Id: Ib77248bc6d44cc9c8a5d2ad0e5c95feab6a54a01
Merged-In: Ib77248bc6d44cc9c8a5d2ad0e5c95feab6a54a01
(cherry picked from commit 5676d98881)
This commit is contained in:
committed by
Colin Cross
parent
a9d6e01b6e
commit
dc5057e9d4
@@ -89,7 +89,7 @@ import java.util.concurrent.Executor;
|
||||
|
||||
@SmallTest
|
||||
@RunWith(AndroidTestingRunner.class)
|
||||
@TestableLooper.RunWithLooper()
|
||||
@TestableLooper.RunWithLooper(setAsMainLooper = true)
|
||||
public class GlobalActionsDialogTest extends SysuiTestCase {
|
||||
private GlobalActionsDialog mGlobalActionsDialog;
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ import org.mockito.Mock;
|
||||
import org.mockito.MockitoAnnotations;
|
||||
|
||||
@RunWith(AndroidTestingRunner.class)
|
||||
@RunWithLooper
|
||||
@RunWithLooper(setAsMainLooper = true)
|
||||
@SmallTest
|
||||
public class QSTileImplTest extends SysuiTestCase {
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ import org.mockito.Mock;
|
||||
import org.mockito.MockitoAnnotations;
|
||||
|
||||
@RunWith(AndroidTestingRunner.class)
|
||||
@TestableLooper.RunWithLooper()
|
||||
@TestableLooper.RunWithLooper(setAsMainLooper = true)
|
||||
@SmallTest
|
||||
public class ScreenRecordTileTest extends SysuiTestCase {
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ import org.junit.runner.RunWith;
|
||||
import org.mockito.Mockito;
|
||||
|
||||
@RunWith(AndroidTestingRunner.class)
|
||||
@RunWithLooper()
|
||||
@RunWithLooper(setAsMainLooper = true)
|
||||
@SmallTest
|
||||
public class CollapsedStatusBarFragmentTest extends SysuiBaseFragmentTest {
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.mockito.ArgumentCaptor;
|
||||
|
||||
@RunWithLooper
|
||||
@RunWithLooper(setAsMainLooper = true)
|
||||
@RunWith(AndroidTestingRunner.class)
|
||||
@SmallTest
|
||||
public class CallbackControllerTest extends SysuiTestCase {
|
||||
|
||||
@@ -39,7 +39,7 @@ import com.android.systemui.SysuiBaseFragmentTest;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@RunWithLooper
|
||||
@RunWithLooper(setAsMainLooper = true)
|
||||
@RunWith(AndroidTestingRunner.class)
|
||||
@SmallTest
|
||||
public class LifecycleFragmentTest extends SysuiBaseFragmentTest {
|
||||
|
||||
@@ -49,7 +49,7 @@ import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@RunWithLooper
|
||||
@RunWithLooper(setAsMainLooper = true)
|
||||
@RunWith(AndroidTestingRunner.class)
|
||||
@SmallTest
|
||||
public class SysuiLifecycleTest extends SysuiTestCase {
|
||||
|
||||
Reference in New Issue
Block a user