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

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

Issue 2737343003: bluetooth: Add FakeBluetooth interface (Closed)
Patch Set: Move to public deps Created 3 years, 9 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
new file mode 100644
index 0000000000000000000000000000000000000000..bdfe7907d7cbb376cbc4a00de683ec075d8190db
--- /dev/null
+++ b/device/bluetooth/test/fake_bluetooth.cc
@@ -0,0 +1,31 @@
+// 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.
+
+#include "device/bluetooth/test/fake_bluetooth.h"
+
+#include <utility>
+
+#include "base/memory/ptr_util.h"
+#include "device/bluetooth/public/interfaces/test/fake_bluetooth.mojom.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
+
+namespace bluetooth {
+
+FakeBluetooth::FakeBluetooth() {}
+FakeBluetooth::~FakeBluetooth() {}
+
+// static
+void FakeBluetooth::Create(mojom::FakeBluetoothRequest request) {
+ mojo::MakeStrongBinding(base::MakeUnique<FakeBluetooth>(),
+ std::move(request));
+}
+
+void FakeBluetooth::SetLEAvailability(
+ bool available,
+ const SetLEAvailabilityCallback& callback) {
+ // TODO(crbug.com/569709): Actually implement this method.
+ callback.Run();
+}
+
+} // namespace bluetooth
« no previous file with comments | « device/bluetooth/test/fake_bluetooth.h ('k') | third_party/WebKit/LayoutTests/bluetooth/requestDevice/le-not-supported.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698