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

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

Issue 10915148: Change getDevices to use a DeviceCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test breakage Created 8 years, 3 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_DEVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 12 matching lines...) Expand all
23 bool connected); 23 bool connected);
24 virtual ~MockBluetoothDevice(); 24 virtual ~MockBluetoothDevice();
25 25
26 MOCK_CONST_METHOD0(address, const std::string&()); 26 MOCK_CONST_METHOD0(address, const std::string&());
27 MOCK_CONST_METHOD0(GetName, string16()); 27 MOCK_CONST_METHOD0(GetName, string16());
28 MOCK_CONST_METHOD0(IsPaired, bool()); 28 MOCK_CONST_METHOD0(IsPaired, bool());
29 MOCK_CONST_METHOD0(IsBonded, bool()); 29 MOCK_CONST_METHOD0(IsBonded, bool());
30 MOCK_CONST_METHOD0(IsConnected, bool()); 30 MOCK_CONST_METHOD0(IsConnected, bool());
31 MOCK_CONST_METHOD1(ProvidesServiceWithUUID, bool(const std::string&)); 31 MOCK_CONST_METHOD1(ProvidesServiceWithUUID, bool(const std::string&));
32 32
33 MOCK_METHOD2(ProvidesServiceWithName,
34 void(const std::string&,
35 const ProvidesServiceCallback& callback));
33 MOCK_METHOD3(SetOutOfBandPairingData, 36 MOCK_METHOD3(SetOutOfBandPairingData,
34 void(const chromeos::BluetoothOutOfBandPairingData& data, 37 void(const chromeos::BluetoothOutOfBandPairingData& data,
35 const base::Closure& callback, 38 const base::Closure& callback,
36 const BluetoothDevice::ErrorCallback& error_callback)); 39 const BluetoothDevice::ErrorCallback& error_callback));
37 MOCK_METHOD2(ClearOutOfBandPairingData, 40 MOCK_METHOD2(ClearOutOfBandPairingData,
38 void(const base::Closure& callback, 41 void(const base::Closure& callback,
39 const BluetoothDevice::ErrorCallback& error_callback)); 42 const BluetoothDevice::ErrorCallback& error_callback));
40 43
41 private: 44 private:
42 string16 name_; 45 string16 name_;
43 std::string address_; 46 std::string address_;
44 }; 47 };
45 48
46 } // namespace chromeos 49 } // namespace chromeos
47 50
48 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ 51 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/bluetooth/bluetooth_device.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