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

Side by Side Diff: device/bluetooth/dbus/fake_bluetooth_profile_service_provider.cc

Issue 2310883003: dbus: No dbus::FileDescriptor in BluetoothProfileServiceProvider (Closed)
Patch Set: Fix tests Created 4 years, 3 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/bluetooth/dbus/fake_bluetooth_profile_service_provider.h" 5 #include "device/bluetooth/dbus/fake_bluetooth_profile_service_provider.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "device/bluetooth/dbus/bluez_dbus_manager.h" 10 #include "device/bluetooth/dbus/bluez_dbus_manager.h"
(...skipping 22 matching lines...) Expand all
33 fake_bluetooth_profile_manager_client->UnregisterProfileServiceProvider(this); 33 fake_bluetooth_profile_manager_client->UnregisterProfileServiceProvider(this);
34 } 34 }
35 35
36 void FakeBluetoothProfileServiceProvider::Released() { 36 void FakeBluetoothProfileServiceProvider::Released() {
37 VLOG(1) << object_path_.value() << ": Released"; 37 VLOG(1) << object_path_.value() << ": Released";
38 delegate_->Released(); 38 delegate_->Released();
39 } 39 }
40 40
41 void FakeBluetoothProfileServiceProvider::NewConnection( 41 void FakeBluetoothProfileServiceProvider::NewConnection(
42 const dbus::ObjectPath& device_path, 42 const dbus::ObjectPath& device_path,
43 std::unique_ptr<dbus::FileDescriptor> fd, 43 base::ScopedFD fd,
44 const Delegate::Options& options, 44 const Delegate::Options& options,
45 const Delegate::ConfirmationCallback& callback) { 45 const Delegate::ConfirmationCallback& callback) {
46 VLOG(1) << object_path_.value() << ": NewConnection for " 46 VLOG(1) << object_path_.value() << ": NewConnection for "
47 << device_path.value(); 47 << device_path.value();
48 delegate_->NewConnection(device_path, std::move(fd), options, callback); 48 delegate_->NewConnection(device_path, std::move(fd), options, callback);
49 } 49 }
50 50
51 void FakeBluetoothProfileServiceProvider::RequestDisconnection( 51 void FakeBluetoothProfileServiceProvider::RequestDisconnection(
52 const dbus::ObjectPath& device_path, 52 const dbus::ObjectPath& device_path,
53 const Delegate::ConfirmationCallback& callback) { 53 const Delegate::ConfirmationCallback& callback) {
54 VLOG(1) << object_path_.value() << ": RequestDisconnection for " 54 VLOG(1) << object_path_.value() << ": RequestDisconnection for "
55 << device_path.value(); 55 << device_path.value();
56 delegate_->RequestDisconnection(device_path, callback); 56 delegate_->RequestDisconnection(device_path, callback);
57 } 57 }
58 58
59 void FakeBluetoothProfileServiceProvider::Cancel() { 59 void FakeBluetoothProfileServiceProvider::Cancel() {
60 VLOG(1) << object_path_.value() << ": Cancel"; 60 VLOG(1) << object_path_.value() << ": Cancel";
61 delegate_->Cancel(); 61 delegate_->Cancel();
62 } 62 }
63 63
64 } // namespace bluez 64 } // namespace bluez
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698