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

Commit ff09765c authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "le_audio: Remove invalid tests for stopping service first" into main...

Merge "le_audio: Remove invalid tests for stopping service first" into main am: 03d5256a am: 3124d309

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/3140470



Change-Id: I9d0d538a921148a2609ebf50db5ace65a5a43ece
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents f03fd1e8 3124d309
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -266,14 +266,6 @@ public class LeAudioBroadcastServiceTest {
        Assert.assertEquals(mService, LeAudioService.getLeAudioService());
    }

    @Test
    public void testStopLeAudioService() {
        Assert.assertEquals(mService, LeAudioService.getLeAudioService());

        InstrumentationRegistry.getInstrumentation().runOnMainSync(mService::stop);
        InstrumentationRegistry.getInstrumentation().runOnMainSync(mService::start);
    }

    void verifyBroadcastStarted(int broadcastId, BluetoothLeBroadcastSettings settings) {
        mService.createBroadcast(settings);

+0 −13
Original line number Diff line number Diff line
@@ -381,19 +381,6 @@ public class LeAudioServiceTest {
        InstrumentationRegistry.getInstrumentation().runOnMainSync(mService::stop);
    }

    /** Test if stop during init is ok. */
    @Test
    public void testStopStartStopService() throws Exception {
        InstrumentationRegistry.getInstrumentation()
                .runOnMainSync(
                        () -> {
                            mService.stop();
                            mService.start();
                            mService.stop();
                            mService.start();
                        });
    }

    /** Test get/set priority for BluetoothDevice */
    @Test
    public void testGetSetPriority() {