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

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

Issue 2858803003: bluetooth: Implement simulatePreconnectedPeripheral. (Closed)
Patch Set: small 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_central.h
diff --git a/device/bluetooth/test/fake_central.h b/device/bluetooth/test/fake_central.h
index f1c5928073ba758d3a30ebc22e490ad4dc3ad568..47226ead06fa1540559fff267bc4d6313c73164d 100644
--- a/device/bluetooth/test/fake_central.h
+++ b/device/bluetooth/test/fake_central.h
@@ -4,6 +4,9 @@
#ifndef DEVICE_BLUETOOTH_TEST_FAKE_CENTRAL_H_
#define DEVICE_BLUETOOTH_TEST_FAKE_CENTRAL_H_
+#include <memory>
+#include <string>
+
#include "base/compiler_specific.h"
#include "device/bluetooth/bluetooth_adapter.h"
#include "device/bluetooth/public/interfaces/test/fake_bluetooth.mojom.h"
@@ -20,6 +23,12 @@ class FakeCentral : NON_EXPORTED_BASE(public mojom::FakeCentral),
public:
FakeCentral(mojom::CentralState state, mojom::FakeCentralRequest request);
+ // FakeCentral overrides:
+ void SimulateSystemConnectedPeripheral(
+ const std::string& address,
+ const std::string& name,
+ const SimulateSystemConnectedPeripheralCallback& callback) override;
+
// BluetoothAdapter overrides:
std::string GetAddress() const override;
std::string GetName() const override;

Powered by Google App Engine
This is Rietveld 408576698