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

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

Issue 2853433002: bluetooth: Implement simulateCentral (Closed)
Patch Set: even moar cleanup 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.h
diff --git a/device/bluetooth/test/fake_bluetooth.h b/device/bluetooth/test/fake_bluetooth.h
index 31482f0c5cc4fbef518f784ad8061bfcf5d5e1ac..c2762e6a5c811ae43fed24a29b216e8918a63cbf 100644
--- a/device/bluetooth/test/fake_bluetooth.h
+++ b/device/bluetooth/test/fake_bluetooth.h
@@ -6,13 +6,14 @@
#include "base/compiler_specific.h"
#include "device/bluetooth/public/interfaces/test/fake_bluetooth.mojom.h"
-#include "mojo/public/cpp/bindings/binding.h"
+#include "device/bluetooth/test/fake_le_central_observer_manager.h"
namespace bluetooth {
// Implementation of FakeBluetooth in
// src/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom.
-// Implemented on top of the C++ device/bluetooth API.
+// Implemented on top of the C++ device/bluetooth API, mainly
+// device/bluetooth/bluetooth_adapter_factory.h.
class FakeBluetooth : NON_EXPORTED_BASE(public mojom::FakeBluetooth) {
public:
FakeBluetooth();
@@ -22,6 +23,12 @@ class FakeBluetooth : NON_EXPORTED_BASE(public mojom::FakeBluetooth) {
void SetLESupported(bool available,
const SetLESupportedCallback& callback) override;
+ void SimulateLECentralObserverManager(
+ mojom::LECentralObserverManagerState state,
+ const SimulateLECentralObserverManagerCallback& callback) override;
+
+ private:
+ scoped_refptr<FakeLECentralObserverManager> fake_manager_;
};
} // namespace bluetooth

Powered by Google App Engine
This is Rietveld 408576698