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

Side by Side 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: fix review comment 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chromeos/dbus/fake_bluetooth_profile_service_provider.h"
6
7 #include "dbus/object_path.h"
8
9 namespace chromeos {
10
11 FakeBluetoothProfileServiceProvider::FakeBluetoothProfileServiceProvider(
12 const dbus::ObjectPath& object_path,
13 Delegate* delegate)
14 : object_path_(object_path),
15 delegate_(delegate) {
16 VLOG(1) << "Creating Bluetooth Profile: " << object_path_.value();
17 }
18
19 FakeBluetoothProfileServiceProvider::~FakeBluetoothProfileServiceProvider() {
20 VLOG(1) << "Cleaning up Bluetooth Profile: " << object_path_.value();
21 }
22
23 void FakeBluetoothProfileServiceProvider::Release() {
24 VLOG(1) << object_path_.value() << ": Release";
25 delegate_->Release();
26 }
27
28 void FakeBluetoothProfileServiceProvider::NewConnection(
29 const dbus::ObjectPath& device_path,
30 dbus::FileDescriptor* fd,
31 const Delegate::Options& options,
32 const Delegate::ConfirmationCallback& callback) {
33 VLOG(1) << object_path_.value() << ": NewConnection for "
34 << device_path.value();
35 delegate_->NewConnection(device_path, fd, options, callback);
36 }
37
38 void FakeBluetoothProfileServiceProvider::RequestDisconnection(
39 const dbus::ObjectPath& device_path,
40 const Delegate::ConfirmationCallback& callback) {
41 VLOG(1) << object_path_.value() << ": RequestDisconnection for "
42 << device_path.value();
43 delegate_->RequestDisconnection(device_path, callback);
44 }
45
46 void FakeBluetoothProfileServiceProvider::Cancel() {
47 VLOG(1) << object_path_.value() << ": Cancel";
48 delegate_->Cancel();
49 }
50
51 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_bluetooth_profile_service_provider.h ('k') | chromeos/dbus/mock_dbus_thread_manager_without_gmock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698