Merge "Enable ignored test cases of LocaleListEditorTest"

This commit is contained in:
TreeHugger Robot
2022-01-19 16:48:51 +00:00
committed by Android (Google) Code Review

View File

@@ -34,7 +34,6 @@ import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
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.Mock; import org.mockito.Mock;
@@ -82,7 +81,6 @@ public class LocaleListEditorTest {
} }
@Test @Test
@Ignore
public void testDisallowConfigLocale_unrestrict() { public void testDisallowConfigLocale_unrestrict() {
ReflectionHelpers.setField(mLocaleListEditor, "mIsUiRestricted", true); ReflectionHelpers.setField(mLocaleListEditor, "mIsUiRestricted", true);
mLocaleListEditor.onAttach(mContext); mLocaleListEditor.onAttach(mContext);
@@ -91,7 +89,6 @@ public class LocaleListEditorTest {
} }
@Test @Test
@Ignore
public void testDisallowConfigLocale_restrict() { public void testDisallowConfigLocale_restrict() {
ReflectionHelpers.setField(mLocaleListEditor, "mIsUiRestricted", false); ReflectionHelpers.setField(mLocaleListEditor, "mIsUiRestricted", false);
mLocaleListEditor.onAttach(mContext); mLocaleListEditor.onAttach(mContext);