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

Commit 5457dfd9 authored by Himanshu Rawat's avatar Himanshu Rawat
Browse files

Adding area members to the pairing tests

Moving pairing related aosp Avatar and Bumble tests into separate
subfolders. And adding area members to these subfolders.

Bug: 321014597
Test: atest BumbleBluetoothTests:android.bluetooth
Test: avatar run --mobly-std-log --include-filter="SmpTest
Flag: EXEMPT Test ownership changes, no logical change
Change-Id: I35cc9180180d847430b9a3e325ffbed83be3845e
parent 354c5007
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ python_test_host {
    name: "avatar",
    main: "main.py",
    srcs: [
        "*.py",
        "**/*.py",
    ],
    libs: [
        "bumble_services_experimental-python",
+2 −2
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ import avatar.cases.security_test
import gatt_test
import hfpclient_test
import sdp_test
import smp_test
import pairing.smp_test as smp_test

_TEST_CLASSES_LIST = [
    avatar.cases.host_test.HostTest,
+2 −0
Original line number Diff line number Diff line
# Bug component: 27441
rwt@google.com
+9 −12
Original line number Diff line number Diff line
@@ -75,20 +75,16 @@ class SmpTest(base_test.BaseTestClass): # type: ignore[misc]
                    )
                    ref_pairing_stream.send_nowait(ref_ev_answer)
                else:
                    dut_pairing_stream.send_nowait(
                        PairingEventAnswer(
                    dut_pairing_stream.send_nowait(PairingEventAnswer(
                        event=dut_pairing_event,
                        confirm=True,
                        )
                    )
                    ))
                    ref_pairing_event = await anext(ref_pairing_stream)

                    ref_pairing_stream.send_nowait(
                        PairingEventAnswer(
                    ref_pairing_stream.send_nowait(PairingEventAnswer(
                        event=ref_pairing_event,
                        confirm=True,
                        )
                    )
                    ))

        finally:
            dut_pairing_stream.cancel()
@@ -251,6 +247,7 @@ class SmpTest(base_test.BaseTestClass): # type: ignore[misc]
        fut = asyncio.get_running_loop().create_future()

        class Session(smp.Session):

            def on_smp_pairing_request_command(self, command: smp.SMP_Pairing_Request_Command) -> None:
                nonlocal fut
                fut.set_result(False)
+3 −0
Original line number Diff line number Diff line
# Bug component: 27441
# Project owners
rwt@google.com
Loading