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

Side by Side Diff: device/bluetooth/test/mock_bluetooth_adapter.cc

Issue 1367663002: Add Linux support for the Bluetooth API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor_dbus
Patch Set: Created 5 years, 2 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/bluetooth/test/mock_bluetooth_adapter.h" 5 #include "device/bluetooth/test/mock_bluetooth_adapter.h"
6 6
7 #include "device/bluetooth/test/mock_bluetooth_advertisement.h" 7 #include "device/bluetooth/test/mock_bluetooth_advertisement.h"
8 8
9 namespace device { 9 namespace device {
10 10
11 MockBluetoothAdapter::Observer::Observer() {} 11 MockBluetoothAdapter::Observer::Observer() {}
12 MockBluetoothAdapter::Observer::~Observer() {} 12 MockBluetoothAdapter::Observer::~Observer() {}
13 13
14 MockBluetoothAdapter::MockBluetoothAdapter() { 14 MockBluetoothAdapter::MockBluetoothAdapter() {
15 } 15 }
16 16
17 MockBluetoothAdapter::~MockBluetoothAdapter() {} 17 MockBluetoothAdapter::~MockBluetoothAdapter() {}
18 18
19 #if defined(OS_CHROMEOS) 19 #if defined(OS_CHROMEOS) || defined(OS_LINUX)
20 void MockBluetoothAdapter::Shutdown() { 20 void MockBluetoothAdapter::Shutdown() {
21 } 21 }
22 #endif 22 #endif
23 23
24 void MockBluetoothAdapter::AddDiscoverySession( 24 void MockBluetoothAdapter::AddDiscoverySession(
25 BluetoothDiscoveryFilter* discovery_filter, 25 BluetoothDiscoveryFilter* discovery_filter,
26 const base::Closure& callback, 26 const base::Closure& callback,
27 const DiscoverySessionErrorCallback& error_callback) {} 27 const DiscoverySessionErrorCallback& error_callback) {}
28 28
29 void MockBluetoothAdapter::RemoveDiscoverySession( 29 void MockBluetoothAdapter::RemoveDiscoverySession(
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } 68 }
69 69
70 void MockBluetoothAdapter::RegisterAdvertisement( 70 void MockBluetoothAdapter::RegisterAdvertisement(
71 scoped_ptr<BluetoothAdvertisement::Data> advertisement_data, 71 scoped_ptr<BluetoothAdvertisement::Data> advertisement_data,
72 const CreateAdvertisementCallback& callback, 72 const CreateAdvertisementCallback& callback,
73 const CreateAdvertisementErrorCallback& error_callback) { 73 const CreateAdvertisementErrorCallback& error_callback) {
74 callback.Run(new MockBluetoothAdvertisement); 74 callback.Run(new MockBluetoothAdvertisement);
75 } 75 }
76 76
77 } // namespace device 77 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698