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

Unified Diff: chromeos/dbus/mock_bluetooth_out_of_band_client.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
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.cc ('k') | chromeos/dbus/mock_bluetooth_out_of_band_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/mock_bluetooth_out_of_band_client.h
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 0000000000000000000000000000000000000000..0a569954132196d7d1b1fe3ce5457cf9dde5ef52
--- /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_
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.cc ('k') | chromeos/dbus/mock_bluetooth_out_of_band_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698