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

Side by Side Diff: chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.cc

Issue 10546010: Implement support for the OOB Pairing APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 8 years, 6 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 | Annotate | Revision Log
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 "chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h" 5 #include "chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h"
6 6
7 namespace chromeos { 7 namespace chromeos {
8 8
9 MockBluetoothAdapter::MockBluetoothAdapter() {} 9 MockBluetoothAdapter::MockBluetoothAdapter() : local_oob_data_(NULL) {}
10 MockBluetoothAdapter::~MockBluetoothAdapter() {} 10 MockBluetoothAdapter::~MockBluetoothAdapter() {}
11 11
12 void MockBluetoothAdapter::SetLocalOutOfBandPairingData(
13 BluetoothOutOfBandPairingData* data) {
14 local_oob_data_ = data;
15 }
16
17 void MockBluetoothAdapter::ReadLocalOutOfBandPairingData(
18 const BluetoothOutOfBandClient::DataCallback& callback) const {
19 callback.Run(*local_oob_data_, (local_oob_data_ != NULL));
20 }
21
12 } // namespace chromeos 22 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698