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

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

Issue 2737343003: bluetooth: Add FakeBluetooth interface (Closed)
Patch Set: move web-bluetooth-test.js 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
« no previous file with comments | « device/bluetooth/test/README.md ('k') | device/bluetooth/test/fake_bluetooth.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/fake_bluetooth.h
diff --git a/device/bluetooth/test/fake_bluetooth.h b/device/bluetooth/test/fake_bluetooth.h
new file mode 100644
index 0000000000000000000000000000000000000000..31482f0c5cc4fbef518f784ad8061bfcf5d5e1ac
--- /dev/null
+++ b/device/bluetooth/test/fake_bluetooth.h
@@ -0,0 +1,29 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+#ifndef DEVICE_BLUETOOTH_TEST_FAKE_BLUETOOTH_H_
+#define DEVICE_BLUETOOTH_TEST_FAKE_BLUETOOTH_H_
+
+#include "base/compiler_specific.h"
+#include "device/bluetooth/public/interfaces/test/fake_bluetooth.mojom.h"
+#include "mojo/public/cpp/bindings/binding.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.
+class FakeBluetooth : NON_EXPORTED_BASE(public mojom::FakeBluetooth) {
+ public:
+ FakeBluetooth();
+ ~FakeBluetooth() override;
+
+ static void Create(mojom::FakeBluetoothRequest request);
+
+ void SetLESupported(bool available,
+ const SetLESupportedCallback& callback) override;
+};
+
+} // namespace bluetooth
+
+#endif // DEVICE_BLUETOOTH_TEST_FAKE_BLUETOOTH_H_
« no previous file with comments | « device/bluetooth/test/README.md ('k') | device/bluetooth/test/fake_bluetooth.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698