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

Unified Diff: device/bluetooth/dbus/fake_bluetooth_device_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, 3 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/dbus/fake_bluetooth_device_client.h
diff --git a/chromeos/dbus/fake_bluetooth_device_client.h b/device/bluetooth/dbus/fake_bluetooth_device_client.h
similarity index 83%
rename from chromeos/dbus/fake_bluetooth_device_client.h
rename to device/bluetooth/dbus/fake_bluetooth_device_client.h
index c19e965273e59784dd5380c3ea55bbc9c451f6b8..edc8ee6889c73e3ab584483054c717544f6ea8d5 100644
--- a/chromeos/dbus/fake_bluetooth_device_client.h
+++ b/device/bluetooth/dbus/fake_bluetooth_device_client.h
@@ -12,23 +12,23 @@
#include "base/callback.h"
#include "base/containers/scoped_ptr_map.h"
#include "base/observer_list.h"
-#include "chromeos/chromeos_export.h"
-#include "chromeos/dbus/bluetooth_agent_service_provider.h"
-#include "chromeos/dbus/bluetooth_device_client.h"
-#include "chromeos/dbus/bluetooth_profile_service_provider.h"
#include "dbus/object_path.h"
#include "dbus/property.h"
+#include "device/bluetooth/bluetooth_export.h"
+#include "device/bluetooth/dbus/bluetooth_agent_service_provider.h"
+#include "device/bluetooth/dbus/bluetooth_device_client.h"
+#include "device/bluetooth/dbus/bluetooth_profile_service_provider.h"
-namespace chromeos {
+namespace bluez {
// FakeBluetoothDeviceClient simulates the behavior of the Bluetooth Daemon
// device objects and is used both in test cases in place of a mock and on
// the Linux desktop.
-class CHROMEOS_EXPORT FakeBluetoothDeviceClient
+class DEVICE_BLUETOOTH_EXPORT FakeBluetoothDeviceClient
: public BluetoothDeviceClient {
public:
struct Properties : public BluetoothDeviceClient::Properties {
- explicit Properties(const PropertyChangedCallback & callback);
+ explicit Properties(const PropertyChangedCallback& callback);
~Properties() override;
// dbus::PropertySet override
@@ -237,52 +237,43 @@ class CHROMEOS_EXPORT FakeBluetoothDeviceClient
void DiscoverySimulationTimer();
void IncomingPairingSimulationTimer();
- void CompleteSimulatedPairing(
- const dbus::ObjectPath& object_path,
- const base::Closure& callback,
- const ErrorCallback& error_callback);
- void TimeoutSimulatedPairing(
- const dbus::ObjectPath& object_path,
- const ErrorCallback& error_callback);
- void CancelSimulatedPairing(
- const dbus::ObjectPath& object_path,
- const ErrorCallback& error_callback);
- void RejectSimulatedPairing(
- const dbus::ObjectPath& object_path,
- const ErrorCallback& error_callback);
- void FailSimulatedPairing(
- const dbus::ObjectPath& object_path,
- const ErrorCallback& error_callback);
- void AddInputDeviceIfNeeded(
- const dbus::ObjectPath& object_path,
- Properties* properties);
+ void CompleteSimulatedPairing(const dbus::ObjectPath& object_path,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback);
+ void TimeoutSimulatedPairing(const dbus::ObjectPath& object_path,
+ const ErrorCallback& error_callback);
+ void CancelSimulatedPairing(const dbus::ObjectPath& object_path,
+ const ErrorCallback& error_callback);
+ void RejectSimulatedPairing(const dbus::ObjectPath& object_path,
+ const ErrorCallback& error_callback);
+ void FailSimulatedPairing(const dbus::ObjectPath& object_path,
+ const ErrorCallback& error_callback);
+ void AddInputDeviceIfNeeded(const dbus::ObjectPath& object_path,
+ Properties* properties);
// Updates the inquiry RSSI property of fake device with object path
// |object_path| to |rssi|, if the fake device exists.
void UpdateDeviceRSSI(const dbus::ObjectPath& object_path, int16 rssi);
- void PinCodeCallback(
- const dbus::ObjectPath& object_path,
- const base::Closure& callback,
- const ErrorCallback& error_callback,
- BluetoothAgentServiceProvider::Delegate::Status status,
- const std::string& pincode);
- void PasskeyCallback(
- const dbus::ObjectPath& object_path,
- const base::Closure& callback,
- const ErrorCallback& error_callback,
- BluetoothAgentServiceProvider::Delegate::Status status,
- uint32 passkey);
+ void PinCodeCallback(const dbus::ObjectPath& object_path,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback,
+ BluetoothAgentServiceProvider::Delegate::Status status,
+ const std::string& pincode);
+ void PasskeyCallback(const dbus::ObjectPath& object_path,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback,
+ BluetoothAgentServiceProvider::Delegate::Status status,
+ uint32 passkey);
void ConfirmationCallback(
const dbus::ObjectPath& object_path,
const base::Closure& callback,
const ErrorCallback& error_callback,
BluetoothAgentServiceProvider::Delegate::Status status);
- void SimulateKeypress(
- uint16 entered,
- const dbus::ObjectPath& object_path,
- const base::Closure& callback,
- const ErrorCallback& error_callback);
+ void SimulateKeypress(uint16 entered,
+ const dbus::ObjectPath& object_path,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback);
void ConnectionCallback(
const dbus::ObjectPath& object_path,
@@ -320,6 +311,6 @@ class CHROMEOS_EXPORT FakeBluetoothDeviceClient
int16 max_transmit_power_;
};
-} // namespace chromeos
+} // namespace bluez
#endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_agent_service_provider.cc ('k') | device/bluetooth/dbus/fake_bluetooth_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698