Merge "Ignore MemtagPreferenceControllerTest and the development test" into main
This commit is contained in:
@@ -38,6 +38,7 @@ import com.android.settingslib.RestrictedSwitchPreference;
|
|||||||
import com.android.settingslib.testutils.shadow.ShadowInteractionJankMonitor;
|
import com.android.settingslib.testutils.shadow.ShadowInteractionJankMonitor;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
@@ -46,13 +47,14 @@ import org.robolectric.RuntimeEnvironment;
|
|||||||
import org.robolectric.annotation.Config;
|
import org.robolectric.annotation.Config;
|
||||||
import org.robolectric.shadows.ShadowSystemProperties;
|
import org.robolectric.shadows.ShadowSystemProperties;
|
||||||
|
|
||||||
|
@Ignore("b/313564061")
|
||||||
@RunWith(RobolectricTestRunner.class)
|
@RunWith(RobolectricTestRunner.class)
|
||||||
@Config(
|
@Config(
|
||||||
shadows = {
|
shadows = {
|
||||||
ZygoteShadow.class,
|
ZygoteShadow.class,
|
||||||
ShadowDeviceConfig.class,
|
ShadowDeviceConfig.class,
|
||||||
ShadowInteractionJankMonitor.class,
|
ShadowInteractionJankMonitor.class,
|
||||||
ShadowRestrictedLockUtilsInternal.class
|
ShadowRestrictedLockUtilsInternal.class
|
||||||
})
|
})
|
||||||
public class DevelopmentMemtagPreferenceControllerTest {
|
public class DevelopmentMemtagPreferenceControllerTest {
|
||||||
private final String mMemtagSupportedProperty = "ro.arm64.memtag.bootctl_supported";
|
private final String mMemtagSupportedProperty = "ro.arm64.memtag.bootctl_supported";
|
||||||
|
@@ -43,6 +43,7 @@ import org.robolectric.RobolectricTestRunner;
|
|||||||
import org.robolectric.annotation.Config;
|
import org.robolectric.annotation.Config;
|
||||||
import org.robolectric.shadows.ShadowSystemProperties;
|
import org.robolectric.shadows.ShadowSystemProperties;
|
||||||
|
|
||||||
|
@Ignore("b/313564061")
|
||||||
@RunWith(RobolectricTestRunner.class)
|
@RunWith(RobolectricTestRunner.class)
|
||||||
@Config(
|
@Config(
|
||||||
shadows = {
|
shadows = {
|
||||||
@@ -134,7 +135,6 @@ public class MemtagPreferenceControllerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore
|
|
||||||
public void setChecked_isChecked_doesNotShowDialog() {
|
public void setChecked_isChecked_doesNotShowDialog() {
|
||||||
ZygoteShadow.setSupportsMemoryTagging(false);
|
ZygoteShadow.setSupportsMemoryTagging(false);
|
||||||
mController.setChecked(false);
|
mController.setChecked(false);
|
||||||
@@ -142,7 +142,6 @@ public class MemtagPreferenceControllerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore
|
|
||||||
public void setChecked_isUnchecked_doesNotShowDialog() {
|
public void setChecked_isUnchecked_doesNotShowDialog() {
|
||||||
ZygoteShadow.setSupportsMemoryTagging(true);
|
ZygoteShadow.setSupportsMemoryTagging(true);
|
||||||
mController.setChecked(true);
|
mController.setChecked(true);
|
||||||
|
Reference in New Issue
Block a user