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

Unified Diff: chromeos/dbus/mock_experimental_bluetooth_profile_manager_client.h

Issue 12605008: D-Bus Clients for BlueZ 5 API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mock dbus thread manager without gmock? I didn't even know that was a thing! Created 7 years, 9 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: chromeos/dbus/mock_experimental_bluetooth_profile_manager_client.h
diff --git a/chromeos/dbus/mock_experimental_bluetooth_profile_manager_client.h b/chromeos/dbus/mock_experimental_bluetooth_profile_manager_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..c07f85e0522b80a4d4956519aa3e40c57f395b49
--- /dev/null
+++ b/chromeos/dbus/mock_experimental_bluetooth_profile_manager_client.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2013 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_EXPERIMENTAL_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_
+#define CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_
+
+#include <string>
+
+#include "chromeos/dbus/experimental_bluetooth_profile_manager_client.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace chromeos {
+
+class MockExperimentalBluetoothProfileManagerClient
+ : public ExperimentalBluetoothProfileManagerClient {
+ public:
+ MockExperimentalBluetoothProfileManagerClient();
+ virtual ~MockExperimentalBluetoothProfileManagerClient();
+
+ MOCK_METHOD5(RegisterProfile, void(const dbus::ObjectPath&,
+ const std::string&,
+ const Options&,
+ const base::Closure&,
+ const ErrorCallback&));
+ MOCK_METHOD3(UnregisterProfile, void(const dbus::ObjectPath&,
+ const base::Closure&,
+ const ErrorCallback&));
+};
+
+} // namespace chromeos
+
+#endif // CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698