Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c5fbae0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "fix: remove unused test" into main

parents d1a03421 d9d3cbd3
Loading
Loading
Loading
Loading
+0 −17
Original line number Diff line number Diff line
@@ -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;
@@ -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";