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

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

Issue 812673002: bluetooth: BluetoothAdapterDeleter used to control BluetoothAdapter destruction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: respond to armansito & fix Mock Created 6 years 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 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 void MockBluetoothAdapter::DeleteOnCorrectThread() {
18 delete this;
19 };
20
17 void MockBluetoothAdapter::AddDiscoverySession( 21 void MockBluetoothAdapter::AddDiscoverySession(
18 const base::Closure& callback, 22 const base::Closure& callback,
19 const ErrorCallback& error_callback) {} 23 const ErrorCallback& error_callback) {}
20 24
21 void MockBluetoothAdapter::RemoveDiscoverySession( 25 void MockBluetoothAdapter::RemoveDiscoverySession(
22 const base::Closure& callback, 26 const base::Closure& callback,
23 const ErrorCallback& error_callback) {} 27 const ErrorCallback& error_callback) {}
24 28
25 } // namespace device 29 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698