Ignore tests in Battery package
Bug: 215064709 Test: run robo test Change-Id: I74d84318a1546e934579d23c79a6a43805880a99
This commit is contained in:
@@ -53,6 +53,7 @@ import com.android.settingslib.fuelgauge.PowerAllowlistBackend;
|
|||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
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.ArgumentCaptor;
|
import org.mockito.ArgumentCaptor;
|
||||||
@@ -201,6 +202,7 @@ public final class BatteryBackupHelperTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore
|
||||||
public void backupOptimizationMode_backupOptimizationMode() throws Exception {
|
public void backupOptimizationMode_backupOptimizationMode() throws Exception {
|
||||||
final List<String> allowlistedApps = Arrays.asList(PACKAGE_NAME1);
|
final List<String> allowlistedApps = Arrays.asList(PACKAGE_NAME1);
|
||||||
createTestingData(PACKAGE_NAME1, PACKAGE_NAME2, PACKAGE_NAME3);
|
createTestingData(PACKAGE_NAME1, PACKAGE_NAME2, PACKAGE_NAME3);
|
||||||
@@ -213,6 +215,7 @@ public final class BatteryBackupHelperTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore
|
||||||
public void backupOptimizationMode_backupOptimizationModeAndIgnoreSystemApp()
|
public void backupOptimizationMode_backupOptimizationModeAndIgnoreSystemApp()
|
||||||
throws Exception {
|
throws Exception {
|
||||||
final List<String> allowlistedApps = Arrays.asList(PACKAGE_NAME1);
|
final List<String> allowlistedApps = Arrays.asList(PACKAGE_NAME1);
|
||||||
@@ -229,6 +232,7 @@ public final class BatteryBackupHelperTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore
|
||||||
public void backupOptimizationMode_backupOptimizationModeAndIgnoreDefaultApp()
|
public void backupOptimizationMode_backupOptimizationModeAndIgnoreDefaultApp()
|
||||||
throws Exception {
|
throws Exception {
|
||||||
final List<String> allowlistedApps = Arrays.asList(PACKAGE_NAME1);
|
final List<String> allowlistedApps = Arrays.asList(PACKAGE_NAME1);
|
||||||
|
@@ -31,6 +31,7 @@ import com.android.settings.testutils.DatabaseTestUtils;
|
|||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
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;
|
||||||
@@ -41,6 +42,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@RunWith(RobolectricTestRunner.class)
|
@RunWith(RobolectricTestRunner.class)
|
||||||
|
@Ignore
|
||||||
public class BatteryDatabaseManagerTest {
|
public class BatteryDatabaseManagerTest {
|
||||||
private static String PACKAGE_NAME_NEW = "com.android.app1";
|
private static String PACKAGE_NAME_NEW = "com.android.app1";
|
||||||
private static int UID_NEW = 345;
|
private static int UID_NEW = 345;
|
||||||
|
Reference in New Issue
Block a user