Files
bumble_mirror/tests
Cheng Sheng 1ceeccbbc0 open_tcp_server_transport: allow explicit sock as input.
When a user doesn't need an exact port, but cares more about getting
SOME unused port, they can do:
* Create a socket outside with port=None or port=0.
* Use socket.getsockname()[1] to get the allocated port and pass to the
TCP client somehow.
* Use the created socket to create a TCP server transport.

Use-case: unit-testing embedded software that implements a BLE host. The
controller will be a Bumble controller, connected to the host via a TCP
channel.
* The host will have a TCP-client HCI transport for testing.
* The pytest setup code will allocate the TCP server and pass the port
number to the host.

Also add some unittests with python mock.
2024-03-13 19:34:05 +01:00
..
2023-08-24 01:27:07 +08:00
2023-10-11 14:33:44 +08:00
2023-10-07 19:32:19 +08:00
2023-12-23 02:14:32 +08:00
2023-06-04 13:12:11 -07:00
2024-01-28 19:09:37 -08:00
2024-01-28 19:09:37 -08:00
2022-05-16 19:42:31 -07:00
2024-01-28 19:02:30 -08:00
2024-02-03 13:29:25 +08:00
2022-12-10 09:40:12 -08:00
2022-12-15 23:07:17 -08:00
2024-02-03 13:13:35 +08:00
2024-01-17 19:30:02 +08:00
2023-11-26 16:55:10 +08:00
2024-01-28 19:09:37 -08:00
2024-02-04 21:23:22 +08:00