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

Side by Side Diff: chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.h

Issue 725383003: chromeos/dbus: Add BlueZ Media Endpoint Service Provider API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
(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 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_
7
8 #include <vector>
9
10 #include "base/logging.h"
11 #include "chromeos/chromeos_export.h"
12 #include "chromeos/dbus/bluetooth_media_endpoint_service_provider.h"
13 #include "dbus/object_path.h"
14
15 namespace chromeos {
16
17 // FakeBluetoothMediaEndpointServiceProvider simulates the behavior of a local
18 // Bluetooth Media Endpoint object.
19 // TODO(mcchou): Add the logic of the behavior.
20 class CHROMEOS_EXPORT FakeBluetoothMediaEndpointServiceProvider
21 : public BluetoothMediaEndpointServiceProvider {
22 public:
23 FakeBluetoothMediaEndpointServiceProvider(const dbus::ObjectPath object_path,
24 Delegate* delegate);
25 ~FakeBluetoothMediaEndpointServiceProvider() override;
26
27 // Each of these calls the equivalent BluetoothMediaEnpointServiceProvider::
28 // Delegate method on the object passed on construction.
29 void SetConfiguration(const dbus::ObjectPath& transport_path,
30 const dbus::MessageReader& properties);
Ben Chan 2014/11/19 22:58:25 fix indentation
Miao 2014/11/19 23:26:40 Done.
31 void SelectConfiguration(
32 const std::vector<uint8_t>& capabilities,
33 const Delegate::SelectConfigurationCallback& callback);
34 void ClearConfiguration(const dbus::ObjectPath& transport_path);
35 void Release();
36
37 private:
38 // The fake D-Bus object path.
39 dbus::ObjectPath object_path_;
40
41 // All incoming method calls are passed to |delegate_|. |callback| passed to
42 // |delegate_| will generate the response for those methods which have
43 // non-void return.
44 Delegate* delegate_;
45
46 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaEndpointServiceProvider);
47 };
48
49 } // namespace chromeos
50
51 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698