Merge "Ignore failing tests under com.android.settings.dashboard" into main
This commit is contained in:
@@ -83,6 +83,7 @@ import com.android.settingslib.drawer.Tile;
|
|||||||
import com.android.settingslib.drawer.TileUtils;
|
import com.android.settingslib.drawer.TileUtils;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.mockito.Answers;
|
import org.mockito.Answers;
|
||||||
@@ -236,6 +237,7 @@ public class DashboardFeatureProviderImplTest {
|
|||||||
assertThat(preference.getOrder()).isEqualTo(tile.getOrder());
|
assertThat(preference.getOrder()).isEqualTo(tile.getOrder());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore("b/313569889")
|
||||||
@Test
|
@Test
|
||||||
public void bindPreference_noFragmentMetadata_shouldBindToProfileSelector() {
|
public void bindPreference_noFragmentMetadata_shouldBindToProfileSelector() {
|
||||||
final Preference preference = new Preference(RuntimeEnvironment.application);
|
final Preference preference = new Preference(RuntimeEnvironment.application);
|
||||||
@@ -702,6 +704,7 @@ public class DashboardFeatureProviderImplTest {
|
|||||||
assertThat(nextStartedActivity).isNull();
|
assertThat(nextStartedActivity).isNull();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore("b/313569889")
|
||||||
@Test
|
@Test
|
||||||
public void openTileIntent_profileSelectionDialog_shouldShow() {
|
public void openTileIntent_profileSelectionDialog_shouldShow() {
|
||||||
ShadowUserManager.getShadow().addUser(10, "Someone", 0);
|
ShadowUserManager.getShadow().addUser(10, "Someone", 0);
|
||||||
@@ -718,6 +721,7 @@ public class DashboardFeatureProviderImplTest {
|
|||||||
verify(mActivity).getSupportFragmentManager();
|
verify(mActivity).getSupportFragmentManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore("b/313569889")
|
||||||
@Test
|
@Test
|
||||||
public void openTileIntent_profileSelectionDialog_explicitMetadataShouldShow() {
|
public void openTileIntent_profileSelectionDialog_explicitMetadataShouldShow() {
|
||||||
ShadowUserManager.getShadow().addUser(10, "Someone", 0);
|
ShadowUserManager.getShadow().addUser(10, "Someone", 0);
|
||||||
@@ -735,6 +739,7 @@ public class DashboardFeatureProviderImplTest {
|
|||||||
verify(mActivity).getSupportFragmentManager();
|
verify(mActivity).getSupportFragmentManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore("b/313569889")
|
||||||
@Test
|
@Test
|
||||||
public void openTileIntent_profileSelectionDialog_shouldNotShow() {
|
public void openTileIntent_profileSelectionDialog_shouldNotShow() {
|
||||||
ShadowUserManager.getShadow().addUser(10, "Someone", 0);
|
ShadowUserManager.getShadow().addUser(10, "Someone", 0);
|
||||||
@@ -752,6 +757,7 @@ public class DashboardFeatureProviderImplTest {
|
|||||||
verify(mActivity, never()).getSupportFragmentManager();
|
verify(mActivity, never()).getSupportFragmentManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore("b/313569889")
|
||||||
@Test
|
@Test
|
||||||
public void openTileIntent_profileSelectionDialog_validUserHandleShouldNotShow() {
|
public void openTileIntent_profileSelectionDialog_validUserHandleShouldNotShow() {
|
||||||
final int userId = 10;
|
final int userId = 10;
|
||||||
@@ -774,6 +780,7 @@ public class DashboardFeatureProviderImplTest {
|
|||||||
verify(mActivity, never()).getSupportFragmentManager();
|
verify(mActivity, never()).getSupportFragmentManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore("b/313569889")
|
||||||
@Test
|
@Test
|
||||||
public void openTileIntent_profileSelectionDialog_invalidUserHandleShouldShow() {
|
public void openTileIntent_profileSelectionDialog_invalidUserHandleShouldShow() {
|
||||||
ShadowUserManager.getShadow().addUser(10, "Someone", 0);
|
ShadowUserManager.getShadow().addUser(10, "Someone", 0);
|
||||||
@@ -792,6 +799,7 @@ public class DashboardFeatureProviderImplTest {
|
|||||||
verify(mActivity).getSupportFragmentManager();
|
verify(mActivity).getSupportFragmentManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore("b/313569889")
|
||||||
@Test
|
@Test
|
||||||
public void openTileIntent_profileSelectionDialog_unresolvableWorkProfileIntentShouldNotShow() {
|
public void openTileIntent_profileSelectionDialog_unresolvableWorkProfileIntentShouldNotShow() {
|
||||||
final int userId = 10;
|
final int userId = 10;
|
||||||
|
@@ -66,6 +66,7 @@ import com.android.settingslib.drawer.ProviderTile;
|
|||||||
import com.android.settingslib.drawer.Tile;
|
import com.android.settingslib.drawer.Tile;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.mockito.Mock;
|
import org.mockito.Mock;
|
||||||
@@ -386,6 +387,7 @@ public class DashboardFragmentTest {
|
|||||||
assertThat(mTestFragment.mBlockerController).isNull();
|
assertThat(mTestFragment.mBlockerController).isNull();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore("b/313569889")
|
||||||
@Test
|
@Test
|
||||||
public void createPreference_isProviderTile_returnSwitchPreference() {
|
public void createPreference_isProviderTile_returnSwitchPreference() {
|
||||||
final Preference pref = mTestFragment.createPreference(mProviderTile);
|
final Preference pref = mTestFragment.createPreference(mProviderTile);
|
||||||
|
@@ -42,6 +42,7 @@ import com.android.settingslib.drawer.Tile;
|
|||||||
import com.google.android.collect.Lists;
|
import com.google.android.collect.Lists;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.mockito.Mock;
|
import org.mockito.Mock;
|
||||||
@@ -88,6 +89,7 @@ public class ProfileSelectDialogTest {
|
|||||||
verify(mUserManager, never()).getUserInfo(NORMAL_USER.getIdentifier());
|
verify(mUserManager, never()).getUserInfo(NORMAL_USER.getIdentifier());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore("b/313569889")
|
||||||
@Test
|
@Test
|
||||||
public void updateUserHandlesIfNeeded_Remove() {
|
public void updateUserHandlesIfNeeded_Remove() {
|
||||||
final Tile tile = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE);
|
final Tile tile = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE);
|
||||||
@@ -103,6 +105,7 @@ public class ProfileSelectDialogTest {
|
|||||||
verify(mUserManager, times(2)).getUserInfo(REMOVED_USER.getIdentifier());
|
verify(mUserManager, times(2)).getUserInfo(REMOVED_USER.getIdentifier());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore("b/313569889")
|
||||||
@Test
|
@Test
|
||||||
public void updateUserHandlesIfNeeded_removesCloneProfile() {
|
public void updateUserHandlesIfNeeded_removesCloneProfile() {
|
||||||
final UserInfo userInfo = new UserInfo(CLONE_USER.getIdentifier(), "clone_user", null,
|
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());
|
verify(mUserManager, times(1)).getUserInfo(CLONE_USER.getIdentifier());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore("b/313569889")
|
||||||
@Test
|
@Test
|
||||||
public void updatePendingIntentsIfNeeded_removesUsersWithNoPendingIntentsAndCloneProfile() {
|
public void updatePendingIntentsIfNeeded_removesUsersWithNoPendingIntentsAndCloneProfile() {
|
||||||
final UserInfo userInfo = new UserInfo(CLONE_USER.getIdentifier(), "clone_user", null,
|
final UserInfo userInfo = new UserInfo(CLONE_USER.getIdentifier(), "clone_user", null,
|
||||||
|
@@ -21,11 +21,13 @@ import static com.android.settings.dashboard.profileselector.ProfileSelectFragme
|
|||||||
import static com.google.common.truth.Truth.assertThat;
|
import static com.google.common.truth.Truth.assertThat;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.mockito.MockitoAnnotations;
|
import org.mockito.MockitoAnnotations;
|
||||||
import org.robolectric.RobolectricTestRunner;
|
import org.robolectric.RobolectricTestRunner;
|
||||||
|
|
||||||
|
@Ignore("b/313569889")
|
||||||
@RunWith(RobolectricTestRunner.class)
|
@RunWith(RobolectricTestRunner.class)
|
||||||
public class ProfileSelectLocationFragmentTest {
|
public class ProfileSelectLocationFragmentTest {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user