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

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

Issue 848613003: bluetooth: Shutdown BluetoothAdapter before DBus on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: --set-upstream-to=origin/master Created 5 years, 11 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
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_adapter.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 namespace device { 7 namespace device {
8 8
9 MockBluetoothAdapter::Observer::Observer() {} 9 MockBluetoothAdapter::Observer::Observer() {}
10 MockBluetoothAdapter::Observer::~Observer() {} 10 MockBluetoothAdapter::Observer::~Observer() {}
11 11
12 MockBluetoothAdapter::MockBluetoothAdapter() { 12 MockBluetoothAdapter::MockBluetoothAdapter() {
13 } 13 }
14 14
15 MockBluetoothAdapter::~MockBluetoothAdapter() {} 15 MockBluetoothAdapter::~MockBluetoothAdapter() {}
16 16
17 #if defined(OS_CHROMEOS)
18 void MockBluetoothAdapter::Shutdown() {
19 }
20 #endif
21
17 void MockBluetoothAdapter::DeleteOnCorrectThread() const { 22 void MockBluetoothAdapter::DeleteOnCorrectThread() const {
18 delete this; 23 delete this;
19 }; 24 };
20 25
21 void MockBluetoothAdapter::AddDiscoverySession( 26 void MockBluetoothAdapter::AddDiscoverySession(
22 const base::Closure& callback, 27 const base::Closure& callback,
23 const ErrorCallback& error_callback) {} 28 const ErrorCallback& error_callback) {}
24 29
25 void MockBluetoothAdapter::RemoveDiscoverySession( 30 void MockBluetoothAdapter::RemoveDiscoverySession(
26 const base::Closure& callback, 31 const base::Closure& callback,
27 const ErrorCallback& error_callback) {} 32 const ErrorCallback& error_callback) {}
28 33
29 } // namespace device 34 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_adapter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698