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

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

Issue 11075006: Moved bluetooth adapter files to device/bluetooth/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: renamed 'bluetooth' target to 'device_bluetooth'. Created 8 years, 2 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 DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_
6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ 6 #define DEVICE_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 "device/bluetooth/bluetooth_adapter.h"
12 #include "chrome/browser/chromeos/bluetooth/bluetooth_device.h" 12 #include "device/bluetooth/bluetooth_device.h"
13 #include "chromeos/dbus/bluetooth_out_of_band_client.h"
14 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
15 14
16 namespace chromeos { 15 namespace device {
17 16
18 class MockBluetoothAdapter : public BluetoothAdapter { 17 class MockBluetoothAdapter : public BluetoothAdapter {
19 public: 18 public:
20 class Observer : public BluetoothAdapter::Observer { 19 class Observer : public BluetoothAdapter::Observer {
21 public: 20 public:
22 Observer(); 21 Observer();
23 virtual ~Observer(); 22 virtual ~Observer();
24 23
25 MOCK_METHOD2(AdapterPresentChanged, void(BluetoothAdapter*, bool)); 24 MOCK_METHOD2(AdapterPresentChanged, void(BluetoothAdapter*, bool));
26 MOCK_METHOD2(AdapterPoweredChanged, void(BluetoothAdapter*, bool)); 25 MOCK_METHOD2(AdapterPoweredChanged, void(BluetoothAdapter*, bool));
(...skipping 23 matching lines...) Expand all
50 MOCK_CONST_METHOD1(GetDevice, 49 MOCK_CONST_METHOD1(GetDevice,
51 const BluetoothDevice*(const std::string& address)); 50 const BluetoothDevice*(const std::string& address));
52 MOCK_METHOD2( 51 MOCK_METHOD2(
53 ReadLocalOutOfBandPairingData, 52 ReadLocalOutOfBandPairingData,
54 void(const BluetoothOutOfBandPairingDataCallback& callback, 53 void(const BluetoothOutOfBandPairingDataCallback& callback,
55 const ErrorCallback& error_callback)); 54 const ErrorCallback& error_callback));
56 protected: 55 protected:
57 virtual ~MockBluetoothAdapter(); 56 virtual ~MockBluetoothAdapter();
58 }; 57 };
59 58
60 } // namespace chromeos 59 } // namespace device
61 60
62 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ 61 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698