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

Commit d9d3cbd3 authored by Ted Bauer's avatar Ted Bauer Committed by Android Build Cherrypicker Worker
Browse files

fix: remove unused test

Bug: 352816506
Test: m
Flag: EXEMPT test only
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7e5e6a1c18e83a805d14bc3e4f2b5220c2948017)
Merged-In: I3cd9b5d24b4c07a701c9686e9362d43d8d657065
Change-Id: I3cd9b5d24b4c07a701c9686e9362d43d8d657065
parent 8d26d442
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";