Descriptiondevice/bluetooth:Implement BluetoothMediaEndpointServiceProvider delegate and media-related overrides.
This CL implements delegate overrides for
BluetoothMediaEndpointServiceProvider and observer overrides for
BluetoothMediaClient and BluetoothMediaTransportClient. These
overrides will be called once a remote device connects to a local
A2DP audio sink, and the state of the audio sink should become idle.
The behaviors of FakeBluetoothMediaTransportClient,
FakeBluetoothMediaEndpointServiceProvider and
FakeMediaEndpointServiceProvider are also defined for
connection-related tests in this CL.
BUG=441581
TEST=device_unittests --gtest_filter=*AudioSink*
Committed: https://crrev.com/016980f10044b64144293f9e1ba0ce4c5fddeda3
Cr-Commit-Position: refs/heads/master@{#316709}
Patch Set 1 #
Total comments: 34
Patch Set 2 : Removed SetVisible from FakeBluetoothMediaEndpointServiceProvider and fixed nits. #
Total comments: 14
Patch Set 3 : Marked TransportProperties struct with DISALLOW_COPY_AND_ASSIGN. #
Total comments: 11
Patch Set 4 : Used EXPECT instead of ASSERT according to test contexts. #
Total comments: 8
Patch Set 5 : #Patch Set 6 : Moved the addition/removal of all types of observer to constructor/destructor. #Messages
Total messages: 24 (9 generated)
|