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

Commit a6a742ae authored by Sungsoo Lim's avatar Sungsoo Lim Committed by Automerger Merge Worker
Browse files

Reset VolumeControlService after the test runs am: 35767ec2

parents d52d3772 35767ec2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import androidx.test.runner.AndroidJUnit4;

import com.android.bluetooth.TestUtils;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -52,6 +53,11 @@ public class VolumeControlNativeInterfaceTest {
        mNativeInterface = VolumeControlNativeInterface.getInstance();
    }

    @After
    public void tearDown() {
        VolumeControlService.setVolumeControlService(null);
    }

    @Test
    public void onConnectionStateChanged() {
        int state = VolumeControlStackEvent.CONNECTION_STATE_CONNECTED;