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

Issue 655093002: [Clean up] Introduce a BLUETOOTH_EXPORT macro to control symbol visibility outside of //device/blue… (Closed)

Created:
6 years, 2 months ago by Ilya Sherman
Modified:
5 years, 11 months ago
Reviewers:
armansito
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Clean up] Introduce a BLUETOOTH_EXPORT macro to control symbol visibility outside of //device/bluetooth. BUG=423116 TEST=none R=armansito@chromium.org

Patch Set 1 #

Patch Set 2 : Export BluetoothUUID's PrintTo as well #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -14 lines) Patch
M device/bluetooth/BUILD.gn View 3 chunks +6 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth.gyp View 3 chunks +5 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter.h View 2 chunks +3 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_factory.h View 1 chunk +2 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_device.h View 2 chunks +2 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_discovery_session.h View 2 chunks +2 lines, -1 line 0 comments Download
A device/bluetooth/bluetooth_export.h View 1 chunk +34 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_gatt_characteristic.h View 2 chunks +2 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_gatt_connection.h View 2 chunks +2 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_gatt_descriptor.h View 2 chunks +2 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_gatt_notify_session.h View 2 chunks +2 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_gatt_service.h View 2 chunks +2 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_socket.h View 2 chunks +3 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_uuid.h View 1 3 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Ilya Sherman
6 years, 2 months ago (2014-10-15 00:48:10 UTC) #1
armansito
On 2014/10/15 00:48:10, Ilya Sherman wrote: Looks like there are some compile errors while linking ...
6 years, 2 months ago (2014-10-15 19:10:30 UTC) #2
Ilya Sherman
On 2014/10/15 19:10:30, armansito wrote: > On 2014/10/15 00:48:10, Ilya Sherman wrote: > > Looks ...
6 years, 2 months ago (2014-10-16 00:50:27 UTC) #3
Ilya Sherman
On 2014/10/16 00:50:27, Ilya Sherman wrote: > On 2014/10/15 19:10:30, armansito wrote: > > On ...
6 years, 2 months ago (2014-10-16 00:51:12 UTC) #4
Ilya Sherman
On 2014/10/16 00:51:12, Ilya Sherman wrote: > On 2014/10/16 00:50:27, Ilya Sherman wrote: > > ...
6 years, 2 months ago (2014-10-16 00:58:58 UTC) #5
armansito
6 years, 2 months ago (2014-10-16 21:57:28 UTC) #6
On 2014/10/16 00:58:58, Ilya Sherman wrote:
> On 2014/10/16 00:51:12, Ilya Sherman wrote:
> > On 2014/10/16 00:50:27, Ilya Sherman wrote:
> > > On 2014/10/15 19:10:30, armansito wrote:
> > > > On 2014/10/15 00:48:10, Ilya Sherman wrote:
> > > > 
> > > > Looks like there are some compile errors while linking device_unittests.
> > > 
> > > Hmm, true enough.  I'm not sure what the way to address that is.  I could
> > > annotate the tested classes with the BLUETOOTH_EXPORT_PRIVATE macro, but
the
> > > "_PRIVATE" suffix is just documentation -- it makes the classes visible
> > outside
> > > of the component either way.  Do you think it's worth making that change? 
> If
> > > not, do you have an alternative suggestion, or should we abandon this
> change?
> > 
> > Actually, I suppose I could define BLUETOOTH_IMPLEMENTATION for the unit
> tests. 
> > Does that sound reasonable?
> 
> Sorry, I am clearly not pausing long enough between messages: The tests all
live
> under the device_unittests target defined within //device/device_tests.gyp. 
So,
> I could define BLUETOOTH_IMPLEMENTATION for all of the device unit tests, even
> though that includes non-Bluetooth tests.  Does that sound okay?  There are a
> fairly limited number of tests defined in that target, so it might be a good
> compromise.

Are you suggesting that non-bluetooth tests have the BLUETOOTH_IMPLEMENTATION
macro on them? Sorry I'm just a bit confused. 

Now that I think about it maybe having Bluetooth tests as part of
device_unittests is a mistake in the first place, especially if we're turning
Bluetooth into a stand-alone component. So perhaps we will want bluetooth to
eventually live in components/bluetooth. For now, would it be possible to
compile the bluetooth unit tests from within bluetooth.gyp/gn and
include/execute it from the top-level device_unittests?

Anyway, in response to your original question, I would check with the top-level
device/ OWNERS. The majority of test cases may belong to bluetooth but there is
enough additional non-bluetooth stuff in there that I would check with them to
make sure what we're doing makes sense.

Powered by Google App Engine
This is Rietveld 408576698