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

Side by Side Diff: device/bluetooth/dbus/fake_bluetooth_agent_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_AGENT_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_AGENT_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_AGENT_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_AGENT_MANAGER_CLIENT_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
11 #include "chromeos/chromeos_export.h"
12 #include "chromeos/dbus/bluetooth_agent_manager_client.h"
13 #include "dbus/object_path.h" 11 #include "dbus/object_path.h"
14 #include "dbus/property.h" 12 #include "dbus/property.h"
13 #include "device/bluetooth/bluetooth_export.h"
14 #include "device/bluetooth/dbus/bluetooth_agent_manager_client.h"
15 15
16 namespace chromeos { 16 namespace bluez {
17 17
18 class FakeBluetoothAgentServiceProvider; 18 class FakeBluetoothAgentServiceProvider;
19 19
20 // FakeBluetoothAgentManagerClient simulates the behavior of the Bluetooth 20 // FakeBluetoothAgentManagerClient simulates the behavior of the Bluetooth
21 // Daemon's agent manager object and is used both in test cases in place of a 21 // Daemon's agent manager object and is used both in test cases in place of a
22 // mock and on the Linux desktop. 22 // mock and on the Linux desktop.
23 class CHROMEOS_EXPORT FakeBluetoothAgentManagerClient 23 class DEVICE_BLUETOOTH_EXPORT FakeBluetoothAgentManagerClient
24 : public BluetoothAgentManagerClient { 24 : public BluetoothAgentManagerClient {
25 public: 25 public:
26 FakeBluetoothAgentManagerClient(); 26 FakeBluetoothAgentManagerClient();
27 ~FakeBluetoothAgentManagerClient() override; 27 ~FakeBluetoothAgentManagerClient() override;
28 28
29 // BluetoothAgentManagerClient overrides 29 // BluetoothAgentManagerClient overrides
30 void Init(dbus::Bus* bus) override; 30 void Init(dbus::Bus* bus) override;
31 void RegisterAgent(const dbus::ObjectPath& agent_path, 31 void RegisterAgent(const dbus::ObjectPath& agent_path,
32 const std::string& capability, 32 const std::string& capability,
33 const base::Closure& callback, 33 const base::Closure& callback,
(...skipping 11 matching lines...) Expand all
45 void UnregisterAgentServiceProvider( 45 void UnregisterAgentServiceProvider(
46 FakeBluetoothAgentServiceProvider* service_provider); 46 FakeBluetoothAgentServiceProvider* service_provider);
47 FakeBluetoothAgentServiceProvider* GetAgentServiceProvider(); 47 FakeBluetoothAgentServiceProvider* GetAgentServiceProvider();
48 48
49 private: 49 private:
50 // The single agent service provider we permit, owned by the application 50 // The single agent service provider we permit, owned by the application
51 // using it. 51 // using it.
52 FakeBluetoothAgentServiceProvider* service_provider_; 52 FakeBluetoothAgentServiceProvider* service_provider_;
53 }; 53 };
54 54
55 } // namespace chromeos 55 } // namespace bluez
56 56
57 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_AGENT_MANAGER_CLIENT_H_ 57 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_AGENT_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_adapter_client.cc ('k') | device/bluetooth/dbus/fake_bluetooth_agent_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698