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

Unified Diff: chromeos/dbus/fake_bluetooth_profile_service_provider.h

Issue 14487002: Bluetooth: Profile support for Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add unit tests, and class comments Created 7 years, 7 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/fake_bluetooth_profile_service_provider.h
diff --git a/chromeos/dbus/fake_bluetooth_profile_service_provider.h b/chromeos/dbus/fake_bluetooth_profile_service_provider.h
index 5af7382e5ffc47e2d45e0a04b53d869ad4d74615..c886f713715351914613bd0eecb17128614c9f6a 100644
--- a/chromeos/dbus/fake_bluetooth_profile_service_provider.h
+++ b/chromeos/dbus/fake_bluetooth_profile_service_provider.h
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/callback.h"
+#include "base/memory/scoped_ptr.h"
#include "chromeos/chromeos_export.h"
#include "chromeos/dbus/dbus_client_implementation_type.h"
#include "chromeos/dbus/experimental_bluetooth_profile_service_provider.h"
@@ -31,7 +32,7 @@ class CHROMEOS_EXPORT FakeBluetoothProfileServiceProvider
virtual void Release();
virtual void NewConnection(
const dbus::ObjectPath& device_path,
- dbus::FileDescriptor* fd,
+ scoped_ptr<dbus::FileDescriptor> fd,
const Delegate::Options& options,
const Delegate::ConfirmationCallback& callback);
virtual void RequestDisconnection(
@@ -40,6 +41,8 @@ class CHROMEOS_EXPORT FakeBluetoothProfileServiceProvider
virtual void Cancel();
private:
+ friend class FakeBluetoothProfileManagerClient;
+
// D-Bus object path we are faking.
dbus::ObjectPath object_path_;
« no previous file with comments | « chromeos/dbus/fake_bluetooth_profile_manager_client.cc ('k') | chromeos/dbus/fake_bluetooth_profile_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698