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

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

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.h
diff --git a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h
index c45305074c754680c112145872c21ef2ce4cc37b..041e7a8ef3cd977c3b1426fe37a22d0b2c11426b 100644
--- a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h
+++ b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h
@@ -394,7 +394,7 @@ class LayoutTestBluetoothAdapterProvider {
// BluetoothDevice::ConnectErrorCode::ERROR_UNSUPPORTED_DEVICE.
static std::unique_ptr<testing::NiceMock<device::MockBluetoothDevice>>
GetBaseDevice(device::MockBluetoothAdapter* adapter,
- const std::string& device_name = "Base Device",
+ const char* device_name = "Base Device",
device::BluetoothDevice::UUIDList uuids =
device::BluetoothDevice::UUIDList(),
const std::string& address = "00:00:00:00:00:00");
@@ -433,7 +433,7 @@ class LayoutTestBluetoothAdapterProvider {
static std::unique_ptr<testing::NiceMock<device::MockBluetoothDevice>>
GetConnectableDevice(
device::MockBluetoothAdapter* adapter,
- const std::string& device_name = "Connectable Device",
+ const char* device_name = "Connectable Device",
device::BluetoothDevice::UUIDList = device::BluetoothDevice::UUIDList(),
const std::string& address = "00:00:00:00:00:00");
@@ -447,10 +447,9 @@ class LayoutTestBluetoothAdapterProvider {
// - CreateGATTConnection:
// - Run error callback with error_type
static std::unique_ptr<testing::NiceMock<device::MockBluetoothDevice>>
- GetUnconnectableDevice(
- device::MockBluetoothAdapter* adapter,
- device::BluetoothDevice::ConnectErrorCode error_code,
- const std::string& device_name = "Unconnectable Device");
+ GetUnconnectableDevice(device::MockBluetoothAdapter* adapter,
+ device::BluetoothDevice::ConnectErrorCode error_code,
+ const char* device_name = "Unconnectable Device");
// |HeartRateDevice|
// Inherits from |ConnectableDevice|(adapter, "Heart Rate Device", uuids)

Powered by Google App Engine
This is Rietveld 408576698