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

Commit cc2d8e0e authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Re-enable unit test in A2dpServiceTest for EVENT_TYPE_CODEC_CONFIG_CHANGED

Previously, the unit test for handling of EVENT_TYPE_CODEC_CONFIG_CHANGED
was disabled because of a bug in the BluetoothCodecStatus.equals()
implementation. Now the implementation is fixed, hence the unit test
is re-enabled.

Bug: 73404858
Bug: 73379307
Test: Unit test (in packages/apps/Bluetooth)
  runtest --path tests/unit/src/com/android/bluetooth/a2dp/A2dpServiceTest.java

Change-Id: I46034b955cd56fd8ae9daac5f4d4dd14ad792982
Merged-In: I46034b955cd56fd8ae9daac5f4d4dd14ad792982
(cherry picked from commit eb0deb77c584c4d36a5e55cc5e79ae64d31a883a)
parent 98b3ce1f
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -610,13 +610,10 @@ public class A2dpServiceTest {
        Assert.assertTrue(mA2dpService.getDevices().contains(mTestDevice));

        // A2DP stack event: EVENT_TYPE_CODEC_CONFIG_CHANGED - Intent broadcast should be generated
        // TODO: Commented-out for now because of b/73404858
/*
        generateCodecMessageFromNative(mTestDevice, codecStatus);
        Assert.assertEquals(BluetoothProfile.STATE_CONNECTED,
                            mA2dpService.getConnectionState(mTestDevice));
        Assert.assertTrue(mA2dpService.getDevices().contains(mTestDevice));
*/

        // A2DP stack event: CONNECTION_STATE_DISCONNECTED - state machine should be removed
        generateConnectionMessageFromNative(mTestDevice, BluetoothProfile.STATE_DISCONNECTED,