Merge "Replace the isWorkProfile method from the SettingsLib" into main
This commit is contained in:
@@ -91,17 +91,6 @@ public final class DatabaseUtilsTest {
|
||||
DataProcessor.sUsageStatsManager = mUsageStatsManager;
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isWorkProfile_defaultValue_returnFalse() {
|
||||
assertThat(DatabaseUtils.isWorkProfile(mContext)).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isWorkProfile_withManagedUser_returnTrue() {
|
||||
BatteryTestUtils.setWorkProfile(mContext);
|
||||
assertThat(DatabaseUtils.isWorkProfile(mContext)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void sendAppUsageEventData_returnsExpectedList() {
|
||||
// Configures the testing AppUsageEvent data.
|
||||
|
||||
Reference in New Issue
Block a user