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

Unified Diff: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc

Issue 1926623002: bluetooth: Remove the device info and device class fields from BluetoothDevice. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
diff --git a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
index e0319a58829e3a80ceec86cd1b80d5ace90b054d..c722c478c399ff2ee8f58a0dd875d98444184f23 100644
--- a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
+++ b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
@@ -588,8 +588,7 @@ LayoutTestBluetoothAdapterProvider::GetBaseDevice(
device::BluetoothDevice::UUIDList uuids,
const std::string& address) {
std::unique_ptr<NiceMockBluetoothDevice> device(new NiceMockBluetoothDevice(
- adapter, 0x1F00 /* Bluetooth class */, device_name, address,
ortuno 2016/04/27 20:16:41 You still need these. Bluez still relies on this c
- true /* paired */, true /* connected */));
+ adapter, device_name, address, true /* paired */, true /* connected */));
ON_CALL(*device, GetUUIDs()).WillByDefault(Return(uuids));
@@ -607,12 +606,6 @@ LayoutTestBluetoothAdapterProvider::GetBaseDevice(
.WillByDefault(
Invoke(device.get(), &MockBluetoothDevice::GetMockService));
- ON_CALL(*device, GetVendorIDSource())
- .WillByDefault(Return(BluetoothDevice::VENDOR_ID_BLUETOOTH));
- ON_CALL(*device, GetVendorID()).WillByDefault(Return(0xFFFF));
- ON_CALL(*device, GetProductID()).WillByDefault(Return(1));
- ON_CALL(*device, GetDeviceID()).WillByDefault(Return(2));
-
return device;
}

Powered by Google App Engine
This is Rietveld 408576698