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

Unified Diff: device/bluetooth/test/fake_peripheral.cc

Issue 2867713008: bluetooth: Implement known_service_uuids for Peripherals. (Closed)
Patch Set: rebase Created 3 years, 7 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: device/bluetooth/test/fake_peripheral.cc
diff --git a/device/bluetooth/test/fake_peripheral.cc b/device/bluetooth/test/fake_peripheral.cc
index 6714a5b827ccdd86180404e1100ed96b1404594a..1515e991b9f194914b363e65f15705cd27e11c72 100644
--- a/device/bluetooth/test/fake_peripheral.cc
+++ b/device/bluetooth/test/fake_peripheral.cc
@@ -15,13 +15,17 @@ FakePeripheral::FakePeripheral(FakeCentral* fake_central,
FakePeripheral::~FakePeripheral() {}
void FakePeripheral::SetName(base::Optional<std::string> name) {
- name_ = name;
+ name_ = std::move(name);
}
void FakePeripheral::SetGattConnected(bool connected) {
gatt_connected_ = connected;
}
+void FakePeripheral::SetServiceUUIDs(UUIDSet service_uuids) {
+ service_uuids_ = std::move(service_uuids);
+}
+
uint32_t FakePeripheral::GetBluetoothClass() const {
NOTREACHED();
return 0;
@@ -102,7 +106,7 @@ bool FakePeripheral::IsConnecting() const {
}
device::BluetoothDevice::UUIDSet FakePeripheral::GetUUIDs() const {
- return UUIDSet();
+ return service_uuids_;
}
bool FakePeripheral::ExpectingPinCode() const {
« no previous file with comments | « device/bluetooth/test/fake_peripheral.h ('k') | third_party/WebKit/LayoutTests/bluetooth/idl/idl-BluetoothDevice.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698