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

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

Issue 10546010: Implement support for the OOB Pairing APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 #ifndef CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_
6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ 6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string>
10
9 #include "base/callback.h" 11 #include "base/callback.h"
10 #include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h" 12 #include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h"
11 #include "chrome/browser/chromeos/bluetooth/bluetooth_device.h" 13 #include "chrome/browser/chromeos/bluetooth/bluetooth_device.h"
14 #include "chromeos/dbus/bluetooth_out_of_band_client.h"
12 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
13 16
14 namespace chromeos { 17 namespace chromeos {
15 18
16 class MockBluetoothAdapter : public BluetoothAdapter { 19 class MockBluetoothAdapter : public BluetoothAdapter {
17 public: 20 public:
18 MockBluetoothAdapter(); 21 MockBluetoothAdapter();
19 virtual ~MockBluetoothAdapter(); 22 virtual ~MockBluetoothAdapter();
20 23
21 MOCK_CONST_METHOD0(IsPresent, bool()); 24 MOCK_CONST_METHOD0(IsPresent, bool());
22 MOCK_CONST_METHOD0(IsPowered, bool()); 25 MOCK_CONST_METHOD0(IsPowered, bool());
23 MOCK_METHOD3(SetDiscovering, 26 MOCK_METHOD3(SetDiscovering,
24 void(bool discovering, 27 void(bool discovering,
25 const base::Closure& callback, 28 const base::Closure& callback,
26 const BluetoothAdapter::ErrorCallback& error_callback)); 29 const BluetoothAdapter::ErrorCallback& error_callback));
27 MOCK_CONST_METHOD0(GetDevices, ConstDeviceList()); 30 MOCK_CONST_METHOD0(GetDevices, ConstDeviceList());
31 MOCK_METHOD1(GetDevice, BluetoothDevice*(const std::string& address));
32 MOCK_CONST_METHOD1(GetDevice,
33 const BluetoothDevice*(const std::string& address));
34 MOCK_METHOD2(
35 ReadLocalOutOfBandPairingData,
36 void(const BluetoothAdapter::BluetoothOutOfBandPairingDataCallback&
37 callback,
38 const BluetoothAdapter::ErrorCallback& error_callback));
28 }; 39 };
29 40
30 } // namespace chromeos 41 } // namespace chromeos
31 42
32 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ 43 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/bluetooth/bluetooth_device.cc ('k') | chrome/browser/chromeos/bluetooth/test/mock_bluetooth_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698