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

Unified Diff: chromeos/dbus/fake_bluetooth_profile_service_provider.cc

Issue 13927010: Bluetooth: implement BlueZ 5 backend for Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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.cc
diff --git a/chromeos/dbus/fake_bluetooth_profile_service_provider.cc b/chromeos/dbus/fake_bluetooth_profile_service_provider.cc
new file mode 100644
index 0000000000000000000000000000000000000000..999da6f8befdaa051d2b7a0f3f35e096de8e51a6
--- /dev/null
+++ b/chromeos/dbus/fake_bluetooth_profile_service_provider.cc
@@ -0,0 +1,51 @@
+// 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.
+
+#include "chromeos/dbus/fake_bluetooth_profile_service_provider.h"
+
+#include "dbus/object_path.h"
+
+namespace chromeos {
+
+FakeBluetoothProfileServiceProvider::FakeBluetoothProfileServiceProvider(
+ const dbus::ObjectPath& object_path,
+ Delegate* delegate)
+ : object_path_(object_path),
+ delegate_(delegate) {
+ VLOG(1) << "Creating Bluetooth Profile: " << object_path_.value();
+}
+
+FakeBluetoothProfileServiceProvider::~FakeBluetoothProfileServiceProvider() {
+ VLOG(1) << "Cleaning up Bluetooth Profile: " << object_path_.value();
+}
+
+void FakeBluetoothProfileServiceProvider::Release() {
+ VLOG(1) << object_path_.value() << ": Release";
+ delegate_->Release();
+}
+
+void FakeBluetoothProfileServiceProvider::NewConnection(
+ const dbus::ObjectPath& device_path,
+ dbus::FileDescriptor* fd,
+ const Delegate::Options& options,
+ const Delegate::ConfirmationCallback& callback) {
+ VLOG(1) << object_path_.value() << ": NewConnection for "
+ << device_path.value();
+ delegate_->NewConnection(device_path, fd, options, callback);
+}
+
+void FakeBluetoothProfileServiceProvider::RequestDisconnection(
+ const dbus::ObjectPath& device_path,
+ const Delegate::ConfirmationCallback& callback) {
+ VLOG(1) << object_path_.value() << ": RequestDisconnection for "
+ << device_path.value();
+ delegate_->RequestDisconnection(device_path, callback);
+}
+
+void FakeBluetoothProfileServiceProvider::Cancel() {
+ VLOG(1) << object_path_.value() << ": Cancel";
+ delegate_->Cancel();
+}
+
+} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698