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

Commit 41eb1362 authored by Sungsoo Lim's avatar Sungsoo Lim
Browse files

Test VolumeControlService.dump

Bug: 237467631
Test: atest BluetoothInstrumentationTests:VolumeControlServiceTest
Change-Id: I3663bf21c948e9819916701a557701db79f04220
parent cffc59eb
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -855,6 +855,14 @@ public class VolumeControlServiceTest {
        Assert.assertEquals(0, descriptor.size());
    }

    @Test
    public void testDump_doesNotCrash() throws Exception {
        connectDevice(mDevice);

        StringBuilder sb = new StringBuilder();
        mService.dump(sb);
    }

    private void connectDevice(BluetoothDevice device) throws Exception {
        VolumeControlStackEvent connCompletedEvent;