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

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

Issue 10815072: Bluetooth API: improve discovery (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix licenses Created 8 years, 4 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h" 11 #include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h"
12 #include "chrome/browser/chromeos/bluetooth/bluetooth_device.h" 12 #include "chrome/browser/chromeos/bluetooth/bluetooth_device.h"
13 #include "chromeos/dbus/bluetooth_out_of_band_client.h" 13 #include "chromeos/dbus/bluetooth_out_of_band_client.h"
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 class MockBluetoothAdapter : public BluetoothAdapter { 18 class MockBluetoothAdapter : public BluetoothAdapter {
19 public: 19 public:
20 MockBluetoothAdapter(); 20 MockBluetoothAdapter();
21 21
22 MOCK_CONST_METHOD0(IsPresent, bool()); 22 MOCK_CONST_METHOD0(IsPresent, bool());
23 MOCK_CONST_METHOD0(IsPowered, bool()); 23 MOCK_CONST_METHOD0(IsPowered, bool());
24 MOCK_CONST_METHOD0(IsDiscovering, bool());
24 MOCK_METHOD3(SetDiscovering, 25 MOCK_METHOD3(SetDiscovering,
25 void(bool discovering, 26 void(bool discovering,
26 const base::Closure& callback, 27 const base::Closure& callback,
27 const BluetoothAdapter::ErrorCallback& error_callback)); 28 const BluetoothAdapter::ErrorCallback& error_callback));
28 MOCK_CONST_METHOD0(GetDevices, ConstDeviceList()); 29 MOCK_CONST_METHOD0(GetDevices, ConstDeviceList());
29 MOCK_METHOD1(GetDevice, BluetoothDevice*(const std::string& address)); 30 MOCK_METHOD1(GetDevice, BluetoothDevice*(const std::string& address));
30 MOCK_CONST_METHOD1(GetDevice, 31 MOCK_CONST_METHOD1(GetDevice,
31 const BluetoothDevice*(const std::string& address)); 32 const BluetoothDevice*(const std::string& address));
32 MOCK_METHOD2( 33 MOCK_METHOD2(
33 ReadLocalOutOfBandPairingData, 34 ReadLocalOutOfBandPairingData,
34 void(const BluetoothAdapter::BluetoothOutOfBandPairingDataCallback& 35 void(const BluetoothAdapter::BluetoothOutOfBandPairingDataCallback&
35 callback, 36 callback,
36 const BluetoothAdapter::ErrorCallback& error_callback)); 37 const BluetoothAdapter::ErrorCallback& error_callback));
37 protected: 38 protected:
38 virtual ~MockBluetoothAdapter(); 39 virtual ~MockBluetoothAdapter();
39 }; 40 };
40 41
41 } // namespace chromeos 42 } // namespace chromeos
42 43
43 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ 44 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/bluetooth/bluetooth_adapter.h ('k') | chrome/browser/chromeos/extensions/bluetooth_event_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698