Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Issue 910023002: device/bluetooth:Implement BluetoothMediaEndpointServiceProvider delegate and media-related overrid… (Closed)

Created:
5 years, 10 months ago by Miao
Modified:
5 years, 10 months ago
Reviewers:
armansito, Ben Chan, mcchou
CC:
chromium-reviews, stevenjb+watch_chromium.org, hashimoto+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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* 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+711 lines, -143 lines) Patch
M chromeos/dbus/bluetooth_media_client.h View 2 chunks +6 lines, -6 lines 0 comments Download
M chromeos/dbus/bluetooth_media_endpoint_service_provider.h View 1 2 4 chunks +40 lines, -3 lines 0 comments Download
M chromeos/dbus/bluetooth_media_endpoint_service_provider.cc View 1 2 3 5 chunks +62 lines, -9 lines 0 comments Download
M chromeos/dbus/bluetooth_media_transport_client.h View 1 2 chunks +15 lines, -4 lines 0 comments Download
M chromeos/dbus/bluetooth_media_transport_client.cc View 1 1 chunk +18 lines, -13 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_media_client.h View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_media_client.cc View 1 2 3 4 5 4 chunks +51 lines, -6 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.h View 1 2 3 4 1 chunk +11 lines, -5 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.cc View 1 2 3 4 2 chunks +23 lines, -15 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_media_transport_client.h View 1 3 chunks +31 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_media_transport_client.cc View 1 2 3 4 4 chunks +62 lines, -5 lines 0 comments Download
M device/bluetooth/bluetooth_audio_sink_chromeos.h View 1 5 chunks +20 lines, -8 lines 0 comments Download
M device/bluetooth/bluetooth_audio_sink_chromeos.cc View 1 2 3 4 5 9 chunks +121 lines, -41 lines 0 comments Download
M device/bluetooth/bluetooth_audio_sink_chromeos_unittest.cc View 1 2 3 4 5 9 chunks +231 lines, -28 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
Miao
This CL is ready for review.
5 years, 10 months ago (2015-02-09 20:34:15 UTC) #2
armansito
https://codereview.chromium.org/910023002/diff/1/chromeos/dbus/bluetooth_media_endpoint_service_provider.cc File chromeos/dbus/bluetooth_media_endpoint_service_provider.cc (right): https://codereview.chromium.org/910023002/diff/1/chromeos/dbus/bluetooth_media_endpoint_service_provider.cc#newcode129 chromeos/dbus/bluetooth_media_endpoint_service_provider.cc:129: // Delegate::TransportProperties structure to |delegate_|. Some of the properties ...
5 years, 10 months ago (2015-02-10 00:17:02 UTC) #3
Miao
https://codereview.chromium.org/910023002/diff/1/chromeos/dbus/bluetooth_media_endpoint_service_provider.cc File chromeos/dbus/bluetooth_media_endpoint_service_provider.cc (right): https://codereview.chromium.org/910023002/diff/1/chromeos/dbus/bluetooth_media_endpoint_service_provider.cc#newcode129 chromeos/dbus/bluetooth_media_endpoint_service_provider.cc:129: // Delegate::TransportProperties structure to |delegate_|. On 2015/02/10 00:17:01, armansito ...
5 years, 10 months ago (2015-02-10 22:15:22 UTC) #4
Miao
https://codereview.chromium.org/910023002/diff/20001/chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.cc File chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.cc (right): https://codereview.chromium.org/910023002/diff/20001/chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.cc#newcode33 chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.cc:33: // Sets the visibility to the transport object to ...
5 years, 10 months ago (2015-02-10 22:49:11 UTC) #5
Ben Chan
https://codereview.chromium.org/910023002/diff/20001/chromeos/dbus/bluetooth_media_endpoint_service_provider.cc File chromeos/dbus/bluetooth_media_endpoint_service_provider.cc (right): https://codereview.chromium.org/910023002/diff/20001/chromeos/dbus/bluetooth_media_endpoint_service_provider.cc#newcode153 chromeos/dbus/bluetooth_media_endpoint_service_provider.cc:153: properties.configuration = std::vector<uint8_t>(bytes, bytes + length); perhaps simply: properties.configuration.assign(bytes, ...
5 years, 10 months ago (2015-02-11 20:36:24 UTC) #6
Miao
https://codereview.chromium.org/910023002/diff/20001/chromeos/dbus/bluetooth_media_endpoint_service_provider.cc File chromeos/dbus/bluetooth_media_endpoint_service_provider.cc (right): https://codereview.chromium.org/910023002/diff/20001/chromeos/dbus/bluetooth_media_endpoint_service_provider.cc#newcode153 chromeos/dbus/bluetooth_media_endpoint_service_provider.cc:153: properties.configuration = std::vector<uint8_t>(bytes, bytes + length); On 2015/02/11 20:36:23, ...
5 years, 10 months ago (2015-02-11 23:17:18 UTC) #7
armansito
lgtm with nits. Also wait for Ben's approval. https://codereview.chromium.org/910023002/diff/40001/chromeos/dbus/bluetooth_media_endpoint_service_provider.cc File chromeos/dbus/bluetooth_media_endpoint_service_provider.cc (right): https://codereview.chromium.org/910023002/diff/40001/chromeos/dbus/bluetooth_media_endpoint_service_provider.cc#newcode32 chromeos/dbus/bluetooth_media_endpoint_service_provider.cc:32: const ...
5 years, 10 months ago (2015-02-12 05:20:44 UTC) #8
Miao
https://codereview.chromium.org/910023002/diff/40001/chromeos/dbus/bluetooth_media_endpoint_service_provider.cc File chromeos/dbus/bluetooth_media_endpoint_service_provider.cc (right): https://codereview.chromium.org/910023002/diff/40001/chromeos/dbus/bluetooth_media_endpoint_service_provider.cc#newcode32 chromeos/dbus/bluetooth_media_endpoint_service_provider.cc:32: const char kInvalidState[] = "unknown"; On 2015/02/12 05:20:44, armansito ...
5 years, 10 months ago (2015-02-12 19:08:04 UTC) #9
Ben Chan
lgtm with nits https://codereview.chromium.org/910023002/diff/60001/chromeos/dbus/fake_bluetooth_media_client.cc File chromeos/dbus/fake_bluetooth_media_client.cc (right): https://codereview.chromium.org/910023002/diff/60001/chromeos/dbus/fake_bluetooth_media_client.cc#newcode91 chromeos/dbus/fake_bluetooth_media_client.cc:91: if (!visible_) { nit: you can ...
5 years, 10 months ago (2015-02-12 21:17:44 UTC) #11
Miao
https://codereview.chromium.org/910023002/diff/60001/chromeos/dbus/fake_bluetooth_media_client.cc File chromeos/dbus/fake_bluetooth_media_client.cc (right): https://codereview.chromium.org/910023002/diff/60001/chromeos/dbus/fake_bluetooth_media_client.cc#newcode91 chromeos/dbus/fake_bluetooth_media_client.cc:91: if (!visible_) { On 2015/02/12 21:17:44, Ben Chan wrote: ...
5 years, 10 months ago (2015-02-12 22:54:06 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/910023002/80001
5 years, 10 months ago (2015-02-12 22:55:23 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/24492)
5 years, 10 months ago (2015-02-12 23:55:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/910023002/160001
5 years, 10 months ago (2015-02-17 23:59:36 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:160001)
5 years, 10 months ago (2015-02-18 00:21:26 UTC) #23
commit-bot: I haz the power
5 years, 10 months ago (2015-02-18 00:22:14 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/016980f10044b64144293f9e1ba0ce4c5fddeda3
Cr-Commit-Position: refs/heads/master@{#316709}

Powered by Google App Engine
This is Rietveld 408576698