OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_AGENT_MANAGER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_AGENT_MANAGER_CLIENT_H_ |
| 7 |
| 8 #include "base/bind.h" |
| 9 #include "base/callback.h" |
| 10 #include "base/observer_list.h" |
| 11 #include "chromeos/chromeos_export.h" |
| 12 #include "chromeos/dbus/dbus_client_implementation_type.h" |
| 13 #include "chromeos/dbus/experimental_bluetooth_agent_manager_client.h" |
| 14 #include "dbus/object_path.h" |
| 15 #include "dbus/property.h" |
| 16 |
| 17 namespace chromeos { |
| 18 |
| 19 // FakeBluetoothAgentManagerClient simulates the behavior of the Bluetooth |
| 20 // Daemon's agent manager object and is used both in test cases in place of a |
| 21 // mock and on the Linux desktop. |
| 22 class CHROMEOS_EXPORT FakeBluetoothAgentManagerClient |
| 23 : public ExperimentalBluetoothAgentManagerClient { |
| 24 public: |
| 25 FakeBluetoothAgentManagerClient(); |
| 26 virtual ~FakeBluetoothAgentManagerClient(); |
| 27 |
| 28 // ExperimentalBluetoothAgentManagerClient override |
| 29 virtual void RegisterAgent(const dbus::ObjectPath& agent_path, |
| 30 const std::string& capability, |
| 31 const base::Closure& callback, |
| 32 const ErrorCallback& error_callback) OVERRIDE; |
| 33 virtual void UnregisterAgent(const dbus::ObjectPath& agent_path, |
| 34 const base::Closure& callback, |
| 35 const ErrorCallback& error_callback) OVERRIDE; |
| 36 virtual void RequestDefaultAgent(const dbus::ObjectPath& agent_path, |
| 37 const base::Closure& callback, |
| 38 const ErrorCallback& error_callback) |
| 39 OVERRIDE; |
| 40 }; |
| 41 |
| 42 } // namespace chromeos |
| 43 |
| 44 #endif /* CHROMEOS_DBUS_FAKE_BLUETOOTH_AGENT_MANAGER_CLIENT_H_ */ |
OLD | NEW |