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

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

Issue 1054743003: Add CPP API for BLE advertisments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
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 DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ 5 #ifndef DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_
6 #define DEVICE_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"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void DeleteOnCorrectThread() const override; 90 void DeleteOnCorrectThread() const override;
91 void AddDiscoverySession(BluetoothDiscoveryFilter* discovery_filter, 91 void AddDiscoverySession(BluetoothDiscoveryFilter* discovery_filter,
92 const base::Closure& callback, 92 const base::Closure& callback,
93 const ErrorCallback& error_callback) override; 93 const ErrorCallback& error_callback) override;
94 void RemoveDiscoverySession(BluetoothDiscoveryFilter* discovery_filter, 94 void RemoveDiscoverySession(BluetoothDiscoveryFilter* discovery_filter,
95 const base::Closure& callback, 95 const base::Closure& callback,
96 const ErrorCallback& error_callback) override; 96 const ErrorCallback& error_callback) override;
97 void SetDiscoveryFilter(scoped_ptr<BluetoothDiscoveryFilter> discovery_filter, 97 void SetDiscoveryFilter(scoped_ptr<BluetoothDiscoveryFilter> discovery_filter,
98 const base::Closure& callback, 98 const base::Closure& callback,
99 const ErrorCallback& error_callback) override; 99 const ErrorCallback& error_callback) override;
100 void RegisterAdvertisement(
101 scoped_ptr<BluetoothAdvertisement::Data> advertisement_data,
102 const CreateAdvertisementCallback& callback,
103 const CreateAdvertisementErrorCallback& error_callback) override;
100 virtual ~MockBluetoothAdapter(); 104 virtual ~MockBluetoothAdapter();
101 105
102 MOCK_METHOD1(RemovePairingDelegateInternal, 106 MOCK_METHOD1(RemovePairingDelegateInternal,
103 void(BluetoothDevice::PairingDelegate* pairing_delegate)); 107 void(BluetoothDevice::PairingDelegate* pairing_delegate));
104 }; 108 };
105 109
106 } // namespace device 110 } // namespace device
107 111
108 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ 112 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698