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:
Nikhil Kumar
2023-02-23 18:33:17 +00:00
committed by Automerger Merge Worker

View File

@@ -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.