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

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

Issue 2196883002: bluetooth: Add optional 'name' support to MockBluetoothDevice. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 6f6420b43cda230ad9bfef33c56c2f8caa4f2f7d..1781dcd851f67c269686daadef3de27b378b4396 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
@@ -708,7 +708,7 @@ LayoutTestBluetoothAdapterProvider::GetDiscoverySession() {
std::unique_ptr<NiceMockBluetoothDevice>
LayoutTestBluetoothAdapterProvider::GetBaseDevice(
MockBluetoothAdapter* adapter,
- const std::string& device_name,
+ const char* device_name,
device::BluetoothDevice::UUIDList uuids,
const std::string& address) {
std::unique_ptr<NiceMockBluetoothDevice> device(new NiceMockBluetoothDevice(
@@ -764,7 +764,7 @@ LayoutTestBluetoothAdapterProvider::GetGlucoseDevice(
std::unique_ptr<NiceMockBluetoothDevice>
LayoutTestBluetoothAdapterProvider::GetConnectableDevice(
device::MockBluetoothAdapter* adapter,
- const std::string& device_name,
+ const char* device_name,
BluetoothDevice::UUIDList uuids,
const std::string& address) {
std::unique_ptr<NiceMockBluetoothDevice> device(
@@ -790,7 +790,7 @@ std::unique_ptr<NiceMockBluetoothDevice>
LayoutTestBluetoothAdapterProvider::GetUnconnectableDevice(
MockBluetoothAdapter* adapter,
BluetoothDevice::ConnectErrorCode error_code,
- const std::string& device_name) {
+ const char* device_name) {
BluetoothDevice::UUIDList uuids;
uuids.push_back(BluetoothUUID(errorUUID(error_code)));

Powered by Google App Engine
This is Rietveld 408576698