OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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_media_endpoint_service_provider.h" |
| 6 |
| 7 namespace chromeos { |
| 8 |
| 9 // TODO(mcchou): Add the logic of the behavior. |
| 10 FakeBluetoothMediaEndpointServiceProvider:: |
| 11 FakeBluetoothMediaEndpointServiceProvider( |
| 12 const dbus::ObjectPath object_path, Delegate* delegate) |
| 13 : object_path_(object_path) , delegate_(delegate) { |
| 14 VLOG(1) << "Create Bluetooth Media Endpoint: " << object_path_.value(); |
| 15 // TODO(mcchou): Use the FakeBluetoothMediaClient in DBusThreadManager |
| 16 // to register the FakeBluetoothMediaEndpoint object. |
| 17 } |
| 18 |
| 19 FakeBluetoothMediaEndpointServiceProvider:: |
| 20 ~FakeBluetoothMediaEndpointServiceProvider() { |
| 21 VLOG(1) << "Cleaning up Bluetooth Media Endpoint: " << object_path_.value(); |
| 22 // TODO(mcchou): Use the FakeBluetoothMediaClient in DBusThreadManager |
| 23 // to unregister the FakeBluetoothMediaEndpoint object. |
| 24 } |
| 25 |
| 26 void FakeBluetoothMediaEndpointServiceProvider::SetConfiguration( |
| 27 const dbus::ObjectPath& transport_path, |
| 28 const dbus::MessageReader& properties) { |
| 29 VLOG(1) << object_path_.value() << ": SetConfiguration for " |
| 30 << transport_path.value(); |
| 31 delegate_->SetConfiguration(transport_path, properties); |
| 32 } |
| 33 |
| 34 void FakeBluetoothMediaEndpointServiceProvider::SelectConfiguration( |
| 35 const std::vector<uint8_t>& capabilities, |
| 36 const Delegate::SelectConfigurationCallback& callback) { |
| 37 VLOG(1) << object_path_.value() << ": SelectConfiguration"; |
| 38 delegate_->SelectConfiguration(capabilities, callback); |
| 39 } |
| 40 |
| 41 void FakeBluetoothMediaEndpointServiceProvider::ClearConfiguration( |
| 42 const dbus::ObjectPath& transport_path) { |
| 43 VLOG(1) << object_path_.value() << ": ClearConfiguration for" |
| 44 << transport_path.value(); |
| 45 delegate_->ClearConfiguration(transport_path); |
| 46 } |
| 47 |
| 48 void FakeBluetoothMediaEndpointServiceProvider::Release() { |
| 49 VLOG(1) << object_path_.value() << ": Release"; |
| 50 delegate_->Release(); |
| 51 } |
| 52 |
| 53 } // namespace chromeos |
OLD | NEW |