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

Side by Side 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 unified diff | Download patch
OLDNEW
(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
OLDNEW
« 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