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

Commit b0084927 authored by Harpreet Eli Sangha's avatar Harpreet Eli Sangha
Browse files

DckTest: Move Constants To Companion Object.

Test: atest BumbleBluetoothTests
Bug: 282777116
Flag: TEST_ONLY
Change-Id: Ia4e9190c852a46531de8efb57608a5c4e99ad036
parent 4dd0b2c0
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -38,16 +38,11 @@ import pandora.HostProto.OwnAddressType

@RunWith(AndroidJUnit4::class)
public class DckTest {
    private val TAG = "DckTest"
    private val TIMEOUT: Long = 2000

    private val context: Context = ApplicationProvider.getApplicationContext()
    private val bluetoothManager = context.getSystemService(BluetoothManager::class.java)!!
    private val bluetoothAdapter = bluetoothManager.adapter

    // CCC DK Specification R3 1.2.0 r14 section 19.2.1.2 Bluetooth Le Pairing
    private val CCC_DK_UUID = UUID.fromString("0000FFF5-0000-1000-8000-00805f9b34fb")

    // A Rule live from a test setup through it's teardown.
    // Gives shell permissions during the test.
    @Rule @JvmField val mPermissionRule = AdoptShellPermissionsRule()
@@ -158,4 +153,12 @@ public class DckTest {
                eq(BluetoothProfile.STATE_DISCONNECTED)
            )
    }

    companion object {
        private const val TAG = "DckTest"
        private const val TIMEOUT: Long = 2000

        // CCC DK Specification R3 1.2.0 r14 section 19.2.1.2 Bluetooth Le Pairing
        private val CCC_DK_UUID = UUID.fromString("0000FFF5-0000-1000-8000-00805f9b34fb")
    }
}