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

Commit cee39727 authored by Sungsoo Lim's avatar Sungsoo Lim
Browse files

Reset VolumeControlService after the test runs

Bug: 237467631
Bug: 261551481
Test: atest BluetoothInstrumentationTests
Change-Id: Ice98a8c7acf6deb0e196357f2d897db9cadcaf93
(cherry picked from commit 35767ec2)
Merged-In: Ice98a8c7acf6deb0e196357f2d897db9cadcaf93
parent 3d5ad38b
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;