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

Commit 1faecb99 authored by Yiyi Shen's avatar Yiyi Shen
Browse files

Add SetFlagsRule to fix tests when flag off

Bug: 425495857
Test: atest
Flag: com.android.media.flags.enable_output_switcher_personal_audio_sharing
Change-Id: Ib8dd100eab9130a45040360de00760cd602425b1
parent 68da9a90
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ import android.os.HandlerThread;
import android.os.TestLooperManager;
import android.os.UserHandle;
import android.platform.test.annotations.EnableFlags;
import android.platform.test.flag.junit.SetFlagsRule;

import androidx.test.platform.app.InstrumentationRegistry;

@@ -61,6 +62,7 @@ import com.google.common.collect.ImmutableList;

import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@@ -75,6 +77,7 @@ import java.util.Set;

@RunWith(JUnit4.class)
public class AudioManagerRouteControllerTest {
    @Rule public final SetFlagsRule mSetFlagsRule = new SetFlagsRule();

    private static final String FAKE_ROUTE_NAME = "fake name";
    private static final String FAKE_BT_ROUTE_ADDRESS = "11:22:33:44:55:66";