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

Side by Side Diff: device/bluetooth/dbus/fake_bluetooth_profile_manager_client.h

Issue 1347193004: Refactor DBusThreadManager to split away BT clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "chromeos/chromeos_export.h"
15 #include "chromeos/dbus/bluetooth_profile_manager_client.h"
16 #include "dbus/object_path.h" 14 #include "dbus/object_path.h"
17 #include "dbus/property.h" 15 #include "dbus/property.h"
16 #include "device/bluetooth/bluetooth_export.h"
17 #include "device/bluetooth/dbus/bluetooth_profile_manager_client.h"
18 18
19 namespace chromeos { 19 namespace bluez {
20 20
21 class FakeBluetoothProfileServiceProvider; 21 class FakeBluetoothProfileServiceProvider;
22 22
23 // FakeBluetoothProfileManagerClient simulates the behavior of the Bluetooth 23 // FakeBluetoothProfileManagerClient simulates the behavior of the Bluetooth
24 // Daemon's profile manager object and is used both in test cases in place of a 24 // Daemon's profile manager object and is used both in test cases in place of a
25 // mock and on the Linux desktop. 25 // mock and on the Linux desktop.
26 class CHROMEOS_EXPORT FakeBluetoothProfileManagerClient 26 class DEVICE_BLUETOOTH_EXPORT FakeBluetoothProfileManagerClient
27 : public BluetoothProfileManagerClient { 27 : public BluetoothProfileManagerClient {
28 public: 28 public:
29 FakeBluetoothProfileManagerClient(); 29 FakeBluetoothProfileManagerClient();
30 ~FakeBluetoothProfileManagerClient() override; 30 ~FakeBluetoothProfileManagerClient() override;
31 31
32 // BluetoothProfileManagerClient overrides 32 // BluetoothProfileManagerClient overrides
33 void Init(dbus::Bus* bus) override; 33 void Init(dbus::Bus* bus) override;
34 void RegisterProfile(const dbus::ObjectPath& profile_path, 34 void RegisterProfile(const dbus::ObjectPath& profile_path,
35 const std::string& uuid, 35 const std::string& uuid,
36 const Options& options, 36 const Options& options,
(...skipping 25 matching lines...) Expand all
62 ServiceProviderMap; 62 ServiceProviderMap;
63 ServiceProviderMap service_provider_map_; 63 ServiceProviderMap service_provider_map_;
64 64
65 // Map of Profile UUID to the D-Bus object path of the service provider 65 // Map of Profile UUID to the D-Bus object path of the service provider
66 // in |service_provider_map_|. Maintained by RegisterProfile() and 66 // in |service_provider_map_|. Maintained by RegisterProfile() and
67 // UnregisterProfile() in response to BluetoothProfile methods. 67 // UnregisterProfile() in response to BluetoothProfile methods.
68 typedef std::map<std::string, dbus::ObjectPath> ProfileMap; 68 typedef std::map<std::string, dbus::ObjectPath> ProfileMap;
69 ProfileMap profile_map_; 69 ProfileMap profile_map_;
70 }; 70 };
71 71
72 } // namespace chromeos 72 } // namespace bluez
73 73
74 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_ 74 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698