Merge "Removed isWorkProfile_withSystemUser_returnFalse test" into udc-dev am: 8e67abccae
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/21539124 Change-Id: I69701d8d501c9207cc17c413519be2cad116cf8d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -87,14 +87,6 @@ public final class DatabaseUtilsTest {
|
|||||||
assertThat(DatabaseUtils.isWorkProfile(mContext)).isTrue();
|
assertThat(DatabaseUtils.isWorkProfile(mContext)).isTrue();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void isWorkProfile_withSystemUser_returnFalse() {
|
|
||||||
BatteryTestUtils.setWorkProfile(mContext);
|
|
||||||
Shadows.shadowOf(mContext.getSystemService(UserManager.class)).setIsSystemUser(true);
|
|
||||||
|
|
||||||
assertThat(DatabaseUtils.isWorkProfile(mContext)).isFalse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void sendAppUsageEventData_returnsExpectedList() {
|
public void sendAppUsageEventData_returnsExpectedList() {
|
||||||
// Configures the testing AppUsageEvent data.
|
// Configures the testing AppUsageEvent data.
|
||||||
|
Reference in New Issue
Block a user