The Profile Test Server component is used in integration tests for the bluetooth profiles.
The server manages a fake piconet of peers, and simulates the behavior of the Profile Server. The component implements the ProfileTest interface, which can be used to register mock peers in the piconet, launch profiles to test, and drive peer behavior.
To include the profile server in your build, add:
--with //src/connectivity/bluetooth/tests/bt-profile-test-server
and --with //src/connectivity/bluetooth/tests/bt-profile-test-server:tests
to your fx set
.
To run the unit tests for the server: fx test bt-profile-test-server-tests
.