| OLD | NEW |
| 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 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 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 CHROMEOS_EXPORT FakeBluetoothProfileManagerClient |
| 27 : public BluetoothProfileManagerClient { | 27 : public BluetoothProfileManagerClient { |
| 28 public: | 28 public: |
| 29 FakeBluetoothProfileManagerClient(); | 29 FakeBluetoothProfileManagerClient(); |
| 30 virtual ~FakeBluetoothProfileManagerClient(); | 30 virtual ~FakeBluetoothProfileManagerClient(); |
| 31 | 31 |
| 32 // BluetoothProfileManagerClient overrides | 32 // BluetoothProfileManagerClient overrides |
| 33 virtual void Init(dbus::Bus* bus) OVERRIDE; | 33 virtual void Init(dbus::Bus* bus) override; |
| 34 virtual void RegisterProfile(const dbus::ObjectPath& profile_path, | 34 virtual 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, |
| 37 const base::Closure& callback, | 37 const base::Closure& callback, |
| 38 const ErrorCallback& error_callback) OVERRIDE; | 38 const ErrorCallback& error_callback) override; |
| 39 virtual void UnregisterProfile(const dbus::ObjectPath& profile_path, | 39 virtual void UnregisterProfile(const dbus::ObjectPath& profile_path, |
| 40 const base::Closure& callback, | 40 const base::Closure& callback, |
| 41 const ErrorCallback& error_callback) OVERRIDE; | 41 const ErrorCallback& error_callback) override; |
| 42 | 42 |
| 43 // Register, unregister and retrieve pointers to profile server providers. | 43 // Register, unregister and retrieve pointers to profile server providers. |
| 44 void RegisterProfileServiceProvider( | 44 void RegisterProfileServiceProvider( |
| 45 FakeBluetoothProfileServiceProvider* service_provider); | 45 FakeBluetoothProfileServiceProvider* service_provider); |
| 46 void UnregisterProfileServiceProvider( | 46 void UnregisterProfileServiceProvider( |
| 47 FakeBluetoothProfileServiceProvider* service_provider); | 47 FakeBluetoothProfileServiceProvider* service_provider); |
| 48 FakeBluetoothProfileServiceProvider* GetProfileServiceProvider( | 48 FakeBluetoothProfileServiceProvider* GetProfileServiceProvider( |
| 49 const std::string& uuid); | 49 const std::string& uuid); |
| 50 | 50 |
| 51 // UUIDs recognised for testing. | 51 // UUIDs recognised for testing. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 64 // Map of Profile UUID to the D-Bus object path of the service provider | 64 // Map of Profile UUID to the D-Bus object path of the service provider |
| 65 // in |service_provider_map_|. Maintained by RegisterProfile() and | 65 // in |service_provider_map_|. Maintained by RegisterProfile() and |
| 66 // UnregisterProfile() in response to BluetoothProfile methods. | 66 // UnregisterProfile() in response to BluetoothProfile methods. |
| 67 typedef std::map<std::string, dbus::ObjectPath> ProfileMap; | 67 typedef std::map<std::string, dbus::ObjectPath> ProfileMap; |
| 68 ProfileMap profile_map_; | 68 ProfileMap profile_map_; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace chromeos | 71 } // namespace chromeos |
| 72 | 72 |
| 73 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_ | 73 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_ |
| OLD | NEW |