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

Commit 95730a55 authored by Charlie Boutier's avatar Charlie Boutier
Browse files

BumbleBluetoothTests: add EnableBluetoothRule in Sdp tests

Bug: 362346322
Test: atest BumbleBluetoothTests
Change-Id: I660943c6f79b9039809fb9f5ec562e34046aaa72
parent 40777821
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ class RfcommTest {
    // Set up a Bumble Pandora device for the duration of the test.
    @Rule(order = 1) @JvmField val mBumble = PandoraDevice()

    @Rule(order = 2) @JvmField val EnableBluetoothRule = EnableBluetoothRule(false, true)
    @Rule(order = 2) @JvmField val enableBluetoothRule = EnableBluetoothRule(false, true)

    private lateinit var mBumbleDevice: BluetoothDevice
    private lateinit var host: Host
+8 −2
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ package android.bluetooth;

import static com.google.common.truth.Truth.assertThat;

import android.bluetooth.test_utils.EnableBluetoothRule;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
@@ -53,9 +54,14 @@ public class SdpClientTest {

    private SettableFuture<List<ParcelUuid>> mFutureIntent;

    @Rule public final AdoptShellPermissionsRule mPermissionRule = new AdoptShellPermissionsRule();
    @Rule(order = 0)
    public final AdoptShellPermissionsRule mPermissionRule = new AdoptShellPermissionsRule();

    @Rule public final PandoraDevice mBumble = new PandoraDevice();
    @Rule(order = 1)
    public final PandoraDevice mBumble = new PandoraDevice();

    @Rule(order = 2)
    public final EnableBluetoothRule enableBluetoothRule = new EnableBluetoothRule(false, true);

    private BroadcastReceiver mConnectionStateReceiver =
            new BroadcastReceiver() {