Loading packages/SettingsProvider/test/src/com/android/providers/settings/DeviceConfigServiceTest.java +0 −17 Original line number Diff line number Diff line Loading @@ -22,8 +22,6 @@ import static junit.framework.Assert.assertNull; import android.content.ContentResolver; import android.os.Bundle; import android.platform.test.annotations.RequiresFlagsDisabled; import android.platform.test.annotations.RequiresFlagsEnabled; import android.platform.test.flag.junit.CheckFlagsRule; import android.platform.test.flag.junit.DeviceFlagsValueProvider; import android.provider.Settings; Loading Loading @@ -72,25 +70,10 @@ public class DeviceConfigServiceTest { deleteFromContentProvider(mContentResolver, sNamespace, sKey); } /** * Test that setting overrides are properly disabled when the flag is off. */ @Test @RequiresFlagsDisabled("com.android.providers.settings.support_overrides") public void testOverrideDisabled() throws IOException { final String newValue = "value2"; executeShellCommand("device_config put " + sNamespace + " " + sKey + " " + sValue); executeShellCommand("device_config override " + sNamespace + " " + sKey + " " + newValue); String result = readShellCommandOutput("device_config get " + sNamespace + " " + sKey); assertEquals(sValue + "\n", result); } /** * Test that overrides are readable and can be cleared. */ @Test @RequiresFlagsEnabled("com.android.providers.settings.support_overrides") public void testOverride() throws IOException { final String newValue = "value2"; Loading Loading
packages/SettingsProvider/test/src/com/android/providers/settings/DeviceConfigServiceTest.java +0 −17 Original line number Diff line number Diff line Loading @@ -22,8 +22,6 @@ import static junit.framework.Assert.assertNull; import android.content.ContentResolver; import android.os.Bundle; import android.platform.test.annotations.RequiresFlagsDisabled; import android.platform.test.annotations.RequiresFlagsEnabled; import android.platform.test.flag.junit.CheckFlagsRule; import android.platform.test.flag.junit.DeviceFlagsValueProvider; import android.provider.Settings; Loading Loading @@ -72,25 +70,10 @@ public class DeviceConfigServiceTest { deleteFromContentProvider(mContentResolver, sNamespace, sKey); } /** * Test that setting overrides are properly disabled when the flag is off. */ @Test @RequiresFlagsDisabled("com.android.providers.settings.support_overrides") public void testOverrideDisabled() throws IOException { final String newValue = "value2"; executeShellCommand("device_config put " + sNamespace + " " + sKey + " " + sValue); executeShellCommand("device_config override " + sNamespace + " " + sKey + " " + newValue); String result = readShellCommandOutput("device_config get " + sNamespace + " " + sKey); assertEquals(sValue + "\n", result); } /** * Test that overrides are readable and can be cleared. */ @Test @RequiresFlagsEnabled("com.android.providers.settings.support_overrides") public void testOverride() throws IOException { final String newValue = "value2"; Loading