blob: b355c65442e7adf136371b32155519ab4e42fd45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// Copyright 2014 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.
#ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_
#define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_
#include "base/callback.h"
#include "base/observer_list.h"
#include "chromeos/chromeos_export.h"
#include "chromeos/dbus/bluetooth_media_client.h"
#include "dbus/object_path.h"
namespace chromeos {
class CHROMEOS_EXPORT FakeBluetoothMediaClient : public BluetoothMediaClient {
public:
FakeBluetoothMediaClient();
~FakeBluetoothMediaClient() override;
// DBusClient override.
void Init(dbus::Bus* bus) override;
// BluetoothMediaClient overrides.
void AddObserver(BluetoothMediaClient::Observer* observer) override;
void RemoveObserver(BluetoothMediaClient::Observer* observer) override;
void RegisterEndpoint(const dbus::ObjectPath& object_path,
const dbus::ObjectPath& endpoint_path,
const EndpointProperties& properties,
const base::Closure& callback,
const ErrorCallback& error_callback) override;
void UnregisterEndpoint(const dbus::ObjectPath& object_path,
const dbus::ObjectPath& endpoint_path,
const base::Closure& callback,
const ErrorCallback& error_callback) override;
private:
// List of observers interested in event notifications from us.
ObserverList<BluetoothMediaClient::Observer> observers_;
DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaClient);
};
} // namespace chromeos
#endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_
|