bluetooth: Shutdown BluetoothAdapter before DBus on ChromeOS.
[chromium-blink-merge.git] / chromeos / dbus / fake_bluetooth_media_client.cc
blob3e57b91f439b858851fe17f5532d4b8d8440f12e
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.
5 #include "chromeos/dbus/fake_bluetooth_media_client.h"
7 namespace chromeos {
9 FakeBluetoothMediaClient::FakeBluetoothMediaClient() {
12 FakeBluetoothMediaClient::~FakeBluetoothMediaClient() {
15 void FakeBluetoothMediaClient::Init(dbus::Bus* bus) {
18 void FakeBluetoothMediaClient::AddObserver(
19 BluetoothMediaClient::Observer* observer) {
20 DCHECK(observer);
21 observers_.AddObserver(observer);
24 void FakeBluetoothMediaClient::RemoveObserver(
25 BluetoothMediaClient::Observer* observer) {
26 DCHECK(observer);
27 observers_.RemoveObserver(observer);
30 // TODO(mcchou): Add method definition for |RegisterEndpoint|,
31 // |UnregisterEndpoint|, |RegisterPlayer| and |UnregisterPlayer|.
32 void FakeBluetoothMediaClient::RegisterEndpoint(
33 const dbus::ObjectPath& object_path,
34 const dbus::ObjectPath& endpoint_path,
35 const EndpointProperties& properties,
36 const base::Closure& callback,
37 const ErrorCallback& error_callback) {
38 error_callback.Run("org.bluez.NotImplemented", "");
41 void FakeBluetoothMediaClient::UnregisterEndpoint(
42 const dbus::ObjectPath& object_path,
43 const dbus::ObjectPath& endpoint_path,
44 const base::Closure& callback,
45 const ErrorCallback& error_callback) {
46 error_callback.Run("org.bluez.NotImplemented", "");
49 } // namespace chromeos