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

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

Issue 2815793003: bluetooth: Introduce SetLowEnergyAvailableForTesting (Closed)
Patch Set: Created 3 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: device/bluetooth/test/fake_bluetooth.cc
diff --git a/device/bluetooth/test/fake_bluetooth.cc b/device/bluetooth/test/fake_bluetooth.cc
index bdfe7907d7cbb376cbc4a00de683ec075d8190db..74b7a5cc6ebe43bc5d1836006082dd47ae4816a1 100644
--- a/device/bluetooth/test/fake_bluetooth.cc
+++ b/device/bluetooth/test/fake_bluetooth.cc
@@ -7,6 +7,7 @@
#include <utility>
#include "base/memory/ptr_util.h"
+#include "device/bluetooth/bluetooth_adapter_factory.h"
#include "device/bluetooth/public/interfaces/test/fake_bluetooth.mojom.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
@@ -24,7 +25,8 @@ void FakeBluetooth::Create(mojom::FakeBluetoothRequest request) {
void FakeBluetooth::SetLEAvailability(
bool available,
const SetLEAvailabilityCallback& callback) {
- // TODO(crbug.com/569709): Actually implement this method.
+ device::BluetoothAdapterFactory::Get().SetLowEnergyAvailableForTesting(
+ available);
callback.Run();
}

Powered by Google App Engine
This is Rietveld 408576698