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

Commit 03d5256a authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents bb723415 06e18c71
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() {