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 |