| Index: chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h
|
| diff --git a/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h b/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h
|
| index 2b5f7bce7b261395ec2a592b76251d7301cf9680..8b5326b96fab9503926b1e48f1e17f6c61d4adff 100644
|
| --- a/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h
|
| +++ b/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h
|
| @@ -6,7 +6,10 @@
|
| #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_
|
| #pragma once
|
|
|
| +#include <string>
|
| +
|
| #include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h"
|
| +#include "chromeos/dbus/bluetooth_out_of_band_pairing_data.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
|
|
| namespace chromeos {
|
| @@ -18,8 +21,19 @@ class MockBluetoothAdapter : public BluetoothAdapter {
|
|
|
| MOCK_CONST_METHOD0(IsPresent, bool());
|
| MOCK_CONST_METHOD0(IsPowered, bool());
|
| -
|
| MOCK_CONST_METHOD0(GetDevices, ConstDeviceList());
|
| + MOCK_METHOD2(ClearOutOfBandPairingData, void(const std::string& address,
|
| + const ResultCallback& callback));
|
| +
|
| + // Return whatever data was set with SetLocalOutOfBandPairingData.
|
| + virtual void ReadLocalOutOfBandPairingData(
|
| + const OutOfBandPairingDataCallback& callback) const;
|
| +
|
| + // Ownership of |data| remains with the caller.
|
| + void SetLocalOutOfBandPairingData(OutOfBandPairingData* data);
|
| +
|
| + private:
|
| + const OutOfBandPairingData* local_oob_data_;
|
| };
|
|
|
| } // namespace chromeos
|
|
|