OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "device/bluetooth/test/fake_bluetooth.h" |
| 6 |
| 7 #include <utility> |
| 8 |
| 9 #include "base/memory/ptr_util.h" |
| 10 #include "device/bluetooth/public/interfaces/test/fake_bluetooth.mojom.h" |
| 11 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 12 |
| 13 namespace bluetooth { |
| 14 |
| 15 FakeBluetooth::FakeBluetooth() {} |
| 16 FakeBluetooth::~FakeBluetooth() {} |
| 17 |
| 18 // static |
| 19 void FakeBluetooth::Create(mojom::FakeBluetoothRequest request) { |
| 20 mojo::MakeStrongBinding(base::MakeUnique<FakeBluetooth>(), |
| 21 std::move(request)); |
| 22 } |
| 23 |
| 24 void FakeBluetooth::SetLEAvailability( |
| 25 bool available, |
| 26 const SetLEAvailabilityCallback& callback) { |
| 27 // TODO(crbug.com/569709): Actually implement this method. |
| 28 callback.Run(); |
| 29 } |
| 30 |
| 31 } // namespace bluetooth |
OLD | NEW |