device/bluetooth:Implement BluetoothMediaEndpointServiceProvider delegate and media...
commit016980f10044b64144293f9e1ba0ce4c5fddeda3
authormcchou <mcchou@chromium.org>
Wed, 18 Feb 2015 00:21:11 +0000 (17 16:21 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 18 Feb 2015 00:21:59 +0000 (18 00:21 +0000)
treeee052114c6bde9341035489a35848b2f61659517
parent1ff220bced57014ddeb99e321aa30f58efa15b15
device/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*

Review URL: https://codereview.chromium.org/910023002

Cr-Commit-Position: refs/heads/master@{#316709}
14 files changed:
chromeos/dbus/bluetooth_media_client.h
chromeos/dbus/bluetooth_media_endpoint_service_provider.cc
chromeos/dbus/bluetooth_media_endpoint_service_provider.h
chromeos/dbus/bluetooth_media_transport_client.cc
chromeos/dbus/bluetooth_media_transport_client.h
chromeos/dbus/fake_bluetooth_media_client.cc
chromeos/dbus/fake_bluetooth_media_client.h
chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.cc
chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.h
chromeos/dbus/fake_bluetooth_media_transport_client.cc
chromeos/dbus/fake_bluetooth_media_transport_client.h
device/bluetooth/bluetooth_audio_sink_chromeos.cc
device/bluetooth/bluetooth_audio_sink_chromeos.h
device/bluetooth/bluetooth_audio_sink_chromeos_unittest.cc