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

Unified Diff: chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h

Issue 10546010: Implement support for the OOB Pairing APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
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 18869bb9435906ca64478f9e930ab9e6ab46709d..c2e460aaf58f9b35cdfd6892a05eab184f1399bf 100644
--- a/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h
+++ b/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h
@@ -6,9 +6,12 @@
#define CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_
#pragma once
+#include <string>
+
#include "base/callback.h"
#include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h"
#include "chrome/browser/chromeos/bluetooth/bluetooth_device.h"
+#include "chromeos/dbus/bluetooth_out_of_band_client.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace chromeos {
@@ -25,6 +28,14 @@ class MockBluetoothAdapter : public BluetoothAdapter {
const base::Closure& callback,
const BluetoothAdapter::ErrorCallback& error_callback));
MOCK_CONST_METHOD0(GetDevices, ConstDeviceList());
+ MOCK_METHOD1(GetDevice, BluetoothDevice*(const std::string& address));
+ MOCK_CONST_METHOD1(GetDevice,
+ const BluetoothDevice*(const std::string& address));
+ MOCK_METHOD2(
+ ReadLocalOutOfBandPairingData,
+ void(const BluetoothAdapter::BluetoothOutOfBandPairingDataCallback&
+ callback,
+ const BluetoothAdapter::ErrorCallback& error_callback));
};
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/bluetooth/bluetooth_device.cc ('k') | chrome/browser/chromeos/bluetooth/test/mock_bluetooth_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698