diff --git a/tests/robotests/src/com/android/settings/dashboard/DashboardFeatureProviderImplTest.java b/tests/robotests/src/com/android/settings/dashboard/DashboardFeatureProviderImplTest.java index f7a940f4a55..5317ce0588d 100644 --- a/tests/robotests/src/com/android/settings/dashboard/DashboardFeatureProviderImplTest.java +++ b/tests/robotests/src/com/android/settings/dashboard/DashboardFeatureProviderImplTest.java @@ -83,6 +83,7 @@ import com.android.settingslib.drawer.Tile; import com.android.settingslib.drawer.TileUtils; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Answers; @@ -236,6 +237,7 @@ public class DashboardFeatureProviderImplTest { assertThat(preference.getOrder()).isEqualTo(tile.getOrder()); } + @Ignore("b/313569889") @Test public void bindPreference_noFragmentMetadata_shouldBindToProfileSelector() { final Preference preference = new Preference(RuntimeEnvironment.application); @@ -702,6 +704,7 @@ public class DashboardFeatureProviderImplTest { assertThat(nextStartedActivity).isNull(); } + @Ignore("b/313569889") @Test public void openTileIntent_profileSelectionDialog_shouldShow() { ShadowUserManager.getShadow().addUser(10, "Someone", 0); @@ -718,6 +721,7 @@ public class DashboardFeatureProviderImplTest { verify(mActivity).getSupportFragmentManager(); } + @Ignore("b/313569889") @Test public void openTileIntent_profileSelectionDialog_explicitMetadataShouldShow() { ShadowUserManager.getShadow().addUser(10, "Someone", 0); @@ -735,6 +739,7 @@ public class DashboardFeatureProviderImplTest { verify(mActivity).getSupportFragmentManager(); } + @Ignore("b/313569889") @Test public void openTileIntent_profileSelectionDialog_shouldNotShow() { ShadowUserManager.getShadow().addUser(10, "Someone", 0); @@ -752,6 +757,7 @@ public class DashboardFeatureProviderImplTest { verify(mActivity, never()).getSupportFragmentManager(); } + @Ignore("b/313569889") @Test public void openTileIntent_profileSelectionDialog_validUserHandleShouldNotShow() { final int userId = 10; @@ -774,6 +780,7 @@ public class DashboardFeatureProviderImplTest { verify(mActivity, never()).getSupportFragmentManager(); } + @Ignore("b/313569889") @Test public void openTileIntent_profileSelectionDialog_invalidUserHandleShouldShow() { ShadowUserManager.getShadow().addUser(10, "Someone", 0); @@ -792,6 +799,7 @@ public class DashboardFeatureProviderImplTest { verify(mActivity).getSupportFragmentManager(); } + @Ignore("b/313569889") @Test public void openTileIntent_profileSelectionDialog_unresolvableWorkProfileIntentShouldNotShow() { final int userId = 10; diff --git a/tests/robotests/src/com/android/settings/dashboard/DashboardFragmentTest.java b/tests/robotests/src/com/android/settings/dashboard/DashboardFragmentTest.java index cfbdd75a1bd..449958c59c1 100644 --- a/tests/robotests/src/com/android/settings/dashboard/DashboardFragmentTest.java +++ b/tests/robotests/src/com/android/settings/dashboard/DashboardFragmentTest.java @@ -66,6 +66,7 @@ import com.android.settingslib.drawer.ProviderTile; import com.android.settingslib.drawer.Tile; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; @@ -386,6 +387,7 @@ public class DashboardFragmentTest { assertThat(mTestFragment.mBlockerController).isNull(); } + @Ignore("b/313569889") @Test public void createPreference_isProviderTile_returnSwitchPreference() { final Preference pref = mTestFragment.createPreference(mProviderTile); diff --git a/tests/robotests/src/com/android/settings/dashboard/profileselector/ProfileSelectDialogTest.java b/tests/robotests/src/com/android/settings/dashboard/profileselector/ProfileSelectDialogTest.java index e7e37d72b09..1eb2ea40705 100644 --- a/tests/robotests/src/com/android/settings/dashboard/profileselector/ProfileSelectDialogTest.java +++ b/tests/robotests/src/com/android/settings/dashboard/profileselector/ProfileSelectDialogTest.java @@ -42,6 +42,7 @@ import com.android.settingslib.drawer.Tile; import com.google.android.collect.Lists; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; @@ -88,6 +89,7 @@ public class ProfileSelectDialogTest { verify(mUserManager, never()).getUserInfo(NORMAL_USER.getIdentifier()); } + @Ignore("b/313569889") @Test public void updateUserHandlesIfNeeded_Remove() { final Tile tile = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); @@ -103,6 +105,7 @@ public class ProfileSelectDialogTest { verify(mUserManager, times(2)).getUserInfo(REMOVED_USER.getIdentifier()); } + @Ignore("b/313569889") @Test public void updateUserHandlesIfNeeded_removesCloneProfile() { final UserInfo userInfo = new UserInfo(CLONE_USER.getIdentifier(), "clone_user", null, @@ -119,6 +122,7 @@ public class ProfileSelectDialogTest { verify(mUserManager, times(1)).getUserInfo(CLONE_USER.getIdentifier()); } + @Ignore("b/313569889") @Test public void updatePendingIntentsIfNeeded_removesUsersWithNoPendingIntentsAndCloneProfile() { final UserInfo userInfo = new UserInfo(CLONE_USER.getIdentifier(), "clone_user", null, diff --git a/tests/robotests/src/com/android/settings/dashboard/profileselector/ProfileSelectLocationFragmentTest.java b/tests/robotests/src/com/android/settings/dashboard/profileselector/ProfileSelectLocationFragmentTest.java index fa2782fefbb..e30759af8c1 100644 --- a/tests/robotests/src/com/android/settings/dashboard/profileselector/ProfileSelectLocationFragmentTest.java +++ b/tests/robotests/src/com/android/settings/dashboard/profileselector/ProfileSelectLocationFragmentTest.java @@ -21,11 +21,13 @@ import static com.android.settings.dashboard.profileselector.ProfileSelectFragme import static com.google.common.truth.Truth.assertThat; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.MockitoAnnotations; import org.robolectric.RobolectricTestRunner; +@Ignore("b/313569889") @RunWith(RobolectricTestRunner.class) public class ProfileSelectLocationFragmentTest {