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

Commit 441815c2 authored by Charlie Boutier's avatar Charlie Boutier
Browse files

avatar: update SDP tests to new Bumble's SDP API

Bug: 328089785
Test: atest avatar:SdpTest#test_sdp_connect_and_disconnect
Change-Id: I8a4c2b62b13e779cb221ff3470845ea56e68b0c3
parent 2e4b86a9
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ from bumble.sdp import (
    SDP_ALL_ATTRIBUTES_RANGE,
    SDP_PUBLIC_BROWSE_ROOT,
    SDP_SERVICE_CLASS_ID_LIST_ATTRIBUTE_ID,
    Client as SDP_Client,
    Client as SdpClient,
    ServiceAttribute,
)
from mobly import base_test, test_runner
@@ -90,8 +90,8 @@ class SdpTest(base_test.BaseTestClass): # type: ignore[misc]

        # Connect to the SDP Server
        self.ref.log.info(f'Connecting to SDP Server')
        sdp_client = SDP_Client(self.ref.device)  # type: ignore
        await sdp_client.connect(connection)  # type: ignore
        sdp_client = SdpClient(connection)  # type: ignore
        await sdp_client.connect()  # type: ignore
        self.ref.log.info(f'Connected to SDP Server')

        # SDP Client disconnect
@@ -119,8 +119,8 @@ class SdpTest(base_test.BaseTestClass): # type: ignore[misc]

        # Connect to the SDP Server
        self.ref.log.info(f'Connecting to SDP Server')
        sdp_client = SDP_Client(self.ref.device)  # type: ignore
        await sdp_client.connect(connection)  # type: ignore
        sdp_client = SdpClient(connection)  # type: ignore
        await sdp_client.connect()  # type: ignore
        self.ref.log.info(f'Connected to SDP Server')

        # List all services in the root browse group
@@ -163,8 +163,8 @@ class SdpTest(base_test.BaseTestClass): # type: ignore[misc]

        # Connect to the SDP Server
        self.ref.log.info(f'Connecting to SDP Server')
        sdp_client = SDP_Client(self.ref.device)  # type: ignore
        await sdp_client.connect(connection)  # type: ignore
        sdp_client = SdpClient(connection)  # type: ignore
        await sdp_client.connect()  # type: ignore
        self.ref.log.info(f'Connected to SDP Server')

        # List all services in the root browse group