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

Issue 876153002: device/bluetooth:Implement Register() for BluetoothAudioSinkChromeOS. (Closed)

Created:
5 years, 11 months ago by Miao
Modified:
5 years, 10 months ago
Reviewers:
keybuk, armansito, Ben Chan
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 Register() for BluetoothAudioSinkChromeOS. This CL implements Register function for BluetoothAudioSinkChromeOS and comes up with the corresponding tests. For the tests, FakeBluetoothMediaClient is changed to simulate the behavior of the real D-Bus APIs. BUG=441581 TEST=device_unittests --gtest_filter=*AudioSink* Committed: https://crrev.com/6cf69f3915ec2b0972f36161958d10642f3d27c9 Cr-Commit-Position: refs/heads/master@{#314244}

Patch Set 1 #

Total comments: 39

Patch Set 2 : Removed AdapterPoweredChanged(), |present_| and |powered_|. #

Total comments: 31

Patch Set 3 : Moved kBluetoothAudioSinkUUID to BluetoothMediaClient. #

Total comments: 30

Patch Set 4 : Removed unused include, moved default codec and fixed nits. #

Total comments: 8

Patch Set 5 : Fixed nits. #

Total comments: 2

Patch Set 6 : Marked BluetoothAudioSink with DEVICE_BLUETOOTH_EXPORT. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+424 lines, -60 lines) Patch
M chromeos/chromeos.gyp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/bluetooth_media_client.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/dbus/bluetooth_media_client.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_media_client.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_media_client.cc View 1 2 3 4 2 chunks +35 lines, -8 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.cc View 1 2 3 4 5 10 chunks +29 lines, -13 lines 0 comments Download
M device/bluetooth/bluetooth_audio_sink.h View 1 2 3 4 5 3 chunks +6 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_audio_sink_chromeos.h View 1 2 3 7 chunks +12 lines, -12 lines 0 comments Download
M device/bluetooth/bluetooth_audio_sink_chromeos.cc View 1 2 3 4 7 chunks +135 lines, -25 lines 0 comments Download
A device/bluetooth/bluetooth_audio_sink_chromeos_unittest.cc View 1 2 3 4 1 chunk +188 lines, -0 lines 0 comments Download
M device/device_tests.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (11 generated)
Miao
5 years, 11 months ago (2015-01-26 23:34:43 UTC) #2
armansito
First round comments. I haven't looked at the unit test yet. https://codereview.chromium.org/876153002/diff/1/chromeos/chromeos.gyp File chromeos/chromeos.gyp (left): ...
5 years, 11 months ago (2015-01-27 04:38:06 UTC) #3
Miao
https://codereview.chromium.org/876153002/diff/1/chromeos/dbus/fake_bluetooth_media_client.cc File chromeos/dbus/fake_bluetooth_media_client.cc (right): https://codereview.chromium.org/876153002/diff/1/chromeos/dbus/fake_bluetooth_media_client.cc#newcode9 chromeos/dbus/fake_bluetooth_media_client.cc:9: const char kNotImplementedError[] = "org.chromium.Error.NotImplemented"; On 2015/01/27 04:38:05, armansito ...
5 years, 11 months ago (2015-01-28 02:05:02 UTC) #4
Ben Chan
https://codereview.chromium.org/876153002/diff/20001/chromeos/dbus/fake_bluetooth_media_client.cc File chromeos/dbus/fake_bluetooth_media_client.cc (right): https://codereview.chromium.org/876153002/diff/20001/chromeos/dbus/fake_bluetooth_media_client.cc#newcode14 chromeos/dbus/fake_bluetooth_media_client.cc:14: const char kBluetoothAudioSinkUUID[] = "0000110b-0000-1000-8000-00805f9b34fb"; do you expect to ...
5 years, 10 months ago (2015-01-28 15:54:28 UTC) #5
Miao
https://codereview.chromium.org/876153002/diff/20001/chromeos/dbus/fake_bluetooth_media_client.cc File chromeos/dbus/fake_bluetooth_media_client.cc (right): https://codereview.chromium.org/876153002/diff/20001/chromeos/dbus/fake_bluetooth_media_client.cc#newcode14 chromeos/dbus/fake_bluetooth_media_client.cc:14: const char kBluetoothAudioSinkUUID[] = "0000110b-0000-1000-8000-00805f9b34fb"; On 2015/01/28 15:54:27, Ben ...
5 years, 10 months ago (2015-01-28 22:34:21 UTC) #6
Ben Chan
https://codereview.chromium.org/876153002/diff/20001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/876153002/diff/20001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode257 device/bluetooth/bluetooth_audio_sink_chromeos.cc:257: endpoint_path_ = dbus::ObjectPath(""); On 2015/01/28 22:34:20, Miao wrote: > ...
5 years, 10 months ago (2015-01-28 22:55:20 UTC) #7
Miao
https://codereview.chromium.org/876153002/diff/20001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/876153002/diff/20001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode257 device/bluetooth/bluetooth_audio_sink_chromeos.cc:257: endpoint_path_ = dbus::ObjectPath(""); On 2015/01/28 22:55:20, Ben Chan wrote: ...
5 years, 10 months ago (2015-01-28 23:41:59 UTC) #8
Ben Chan
On 2015/01/28 23:41:59, Miao wrote: > https://codereview.chromium.org/876153002/diff/20001/device/bluetooth/bluetooth_audio_sink_chromeos.cc > File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): > > https://codereview.chromium.org/876153002/diff/20001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode257 > ...
5 years, 10 months ago (2015-01-28 23:45:24 UTC) #9
armansito
https://codereview.chromium.org/876153002/diff/40001/chromeos/dbus/bluetooth_media_client.cc File chromeos/dbus/bluetooth_media_client.cc (right): https://codereview.chromium.org/876153002/diff/40001/chromeos/dbus/bluetooth_media_client.cc#newcode44 chromeos/dbus/bluetooth_media_client.cc:44: const char BluetoothMediaClient::kBluetoothAudioSinkUUID[] = nit: All static variable assignments ...
5 years, 10 months ago (2015-01-29 04:22:56 UTC) #10
Miao
https://codereview.chromium.org/876153002/diff/40001/chromeos/dbus/bluetooth_media_client.cc File chromeos/dbus/bluetooth_media_client.cc (right): https://codereview.chromium.org/876153002/diff/40001/chromeos/dbus/bluetooth_media_client.cc#newcode44 chromeos/dbus/bluetooth_media_client.cc:44: const char BluetoothMediaClient::kBluetoothAudioSinkUUID[] = On 2015/01/29 04:22:55, armansito wrote: ...
5 years, 10 months ago (2015-01-29 23:58:38 UTC) #11
armansito
lgtm with nits https://codereview.chromium.org/876153002/diff/60001/chromeos/dbus/fake_bluetooth_media_client.h File chromeos/dbus/fake_bluetooth_media_client.h (right): https://codereview.chromium.org/876153002/diff/60001/chromeos/dbus/fake_bluetooth_media_client.h#newcode19 chromeos/dbus/fake_bluetooth_media_client.h:19: static const uint8_t kDefaultCodec = 0x00; ...
5 years, 10 months ago (2015-01-30 01:27:46 UTC) #12
Miao
https://codereview.chromium.org/876153002/diff/60001/chromeos/dbus/fake_bluetooth_media_client.h File chromeos/dbus/fake_bluetooth_media_client.h (right): https://codereview.chromium.org/876153002/diff/60001/chromeos/dbus/fake_bluetooth_media_client.h#newcode19 chromeos/dbus/fake_bluetooth_media_client.h:19: static const uint8_t kDefaultCodec = 0x00; On 2015/01/30 01:27:46, ...
5 years, 10 months ago (2015-01-30 03:59:04 UTC) #13
Miao
+keybuk for owner review.
5 years, 10 months ago (2015-01-30 21:51:29 UTC) #15
armansito
On 2015/01/30 21:51:29, Miao wrote: > +keybuk for owner review. You have an OWNER's rubberstamp ...
5 years, 10 months ago (2015-01-30 22:00:50 UTC) #16
Miao
On 2015/01/30 22:00:50, armansito wrote: > On 2015/01/30 21:51:29, Miao wrote: > > +keybuk for ...
5 years, 10 months ago (2015-01-30 22:03:27 UTC) #17
Miao
On 2015/01/30 22:00:50, armansito wrote: > On 2015/01/30 21:51:29, Miao wrote: > > +keybuk for ...
5 years, 10 months ago (2015-01-30 22:03:30 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/876153002/80001
5 years, 10 months ago (2015-01-30 22:05:28 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/18327)
5 years, 10 months ago (2015-01-30 22:46:08 UTC) #22
Ben Chan
https://codereview.chromium.org/876153002/diff/80001/device/bluetooth/bluetooth_audio_sink.h File device/bluetooth/bluetooth_audio_sink.h (right): https://codereview.chromium.org/876153002/diff/80001/device/bluetooth/bluetooth_audio_sink.h#newcode26 device/bluetooth/bluetooth_audio_sink.h:26: class BluetoothAudioSink : public base::RefCounted<BluetoothAudioSink> { you probably need ...
5 years, 10 months ago (2015-02-02 19:43:35 UTC) #23
Miao
https://codereview.chromium.org/876153002/diff/80001/device/bluetooth/bluetooth_audio_sink.h File device/bluetooth/bluetooth_audio_sink.h (right): https://codereview.chromium.org/876153002/diff/80001/device/bluetooth/bluetooth_audio_sink.h#newcode26 device/bluetooth/bluetooth_audio_sink.h:26: class BluetoothAudioSink : public base::RefCounted<BluetoothAudioSink> { On 2015/02/02 19:43:35, ...
5 years, 10 months ago (2015-02-02 21:55:46 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/876153002/100001
5 years, 10 months ago (2015-02-02 21:58:50 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/51139)
5 years, 10 months ago (2015-02-02 23:37:57 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/876153002/100001
5 years, 10 months ago (2015-02-03 02:11:00 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-02-03 02:12:35 UTC) #35
commit-bot: I haz the power
5 years, 10 months ago (2015-02-03 02:13:33 UTC) #36
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6cf69f3915ec2b0972f36161958d10642f3d27c9
Cr-Commit-Position: refs/heads/master@{#314244}

Powered by Google App Engine
This is Rietveld 408576698