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

Commit f0962a49 authored by Marco Ballesio's avatar Marco Ballesio
Browse files

Convert assumption to conditional in freezer test

remove the assumption from freezer test to let presubmit tests run smooth

Bug: 148899617
Test: presumbit tests
Change-Id: Ifd861c62de3f4b249b3ebb35fa6c877af7b610ad
parent ef4dc78c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -36,7 +36,6 @@ import com.android.server.appop.AppOpsService;
import com.android.server.testables.TestableDeviceConfig;

import org.junit.After;
import org.junit.Assume;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
@@ -268,7 +267,9 @@ public final class CachedAppOptimizerTest {

    @Test
    public void useFreeze_doesNotListenToDeviceConfigChanges() throws InterruptedException {
        Assume.assumeTrue(mCachedAppOptimizerUnderTest.isFreezerSupported());
        if (!mCachedAppOptimizerUnderTest.isFreezerSupported()) {
            return;
        }

        assertThat(mCachedAppOptimizerUnderTest.useFreezer()).isEqualTo(
                CachedAppOptimizer.DEFAULT_USE_FREEZER);