summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/mock_bluetooth_out_of_band_client.h
diff options
context:
space:
mode:
authorbryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-15 03:50:45 +0000
committerbryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-15 03:50:45 +0000
commit2b7c40da625aabd2cd1e2b3f4acb3e3da52f32e7 (patch)
tree4f23aeaba864a42cd259afb0fa33a5d910e87d5f /chromeos/dbus/mock_bluetooth_out_of_band_client.h
parent5aee7bef490cabc7c93c372b5dc712673f41dbca (diff)
downloadchromium_src-2b7c40da625aabd2cd1e2b3f4acb3e3da52f32e7.zip
chromium_src-2b7c40da625aabd2cd1e2b3f4acb3e3da52f32e7.tar.gz
chromium_src-2b7c40da625aabd2cd1e2b3f4acb3e3da52f32e7.tar.bz2
Implement support for the OOB Pairing APIs.
TEST=none (though tests are included with the extension APIs) BUG=119473 Review URL: https://chromiumcodereview.appspot.com/10546010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142337 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/mock_bluetooth_out_of_band_client.h')
-rw-r--r--chromeos/dbus/mock_bluetooth_out_of_band_client.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/chromeos/dbus/mock_bluetooth_out_of_band_client.h b/chromeos/dbus/mock_bluetooth_out_of_band_client.h
new file mode 100644
index 0000000..0a56995
--- /dev/null
+++ b/chromeos/dbus/mock_bluetooth_out_of_band_client.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMEOS_DBUS_MOCK_BLUETOOTH_OUT_OF_BAND_CLIENT_H_
+#define CHROMEOS_DBUS_MOCK_BLUETOOTH_OUT_OF_BAND_CLIENT_H_
+
+#include <string>
+
+#include "base/memory/scoped_ptr.h"
+#include "chromeos/dbus/bluetooth_out_of_band_client.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace chromeos {
+
+class MockBluetoothOutOfBandClient : public BluetoothOutOfBandClient {
+ public:
+ MockBluetoothOutOfBandClient();
+ virtual ~MockBluetoothOutOfBandClient();
+
+ MOCK_METHOD2(ReadLocalData,
+ void(const dbus::ObjectPath&,
+ const DataCallback&));
+ MOCK_METHOD4(AddRemoteData,
+ void(const dbus::ObjectPath&,
+ const std::string&,
+ const BluetoothOutOfBandPairingData&,
+ const SuccessCallback&));
+ MOCK_METHOD3(RemoveRemoteData,
+ void(const dbus::ObjectPath&,
+ const std::string&,
+ const SuccessCallback&));
+};
+
+} // namespace chromeos
+
+#endif // CHROMEOS_DBUS_MOCK_BLUETOOTH_OUT_OF_BAND_CLIENT_H_