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

Unified Diff: device/bluetooth/dbus/fake_bluetooth_agent_service_provider.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_agent_service_provider.h
diff --git a/chromeos/dbus/fake_bluetooth_agent_service_provider.h b/device/bluetooth/dbus/fake_bluetooth_agent_service_provider.h
similarity index 79%
rename from chromeos/dbus/fake_bluetooth_agent_service_provider.h
rename to device/bluetooth/dbus/fake_bluetooth_agent_service_provider.h
index 9de89bf1a22ba73f968ff6b765bfa56879a80634..37e1ce6a9438286ab14de2637a4ef1e5f3500377 100644
--- a/chromeos/dbus/fake_bluetooth_agent_service_provider.h
+++ b/device/bluetooth/dbus/fake_bluetooth_agent_service_provider.h
@@ -8,23 +8,23 @@
#include "base/bind.h"
#include "base/callback.h"
#include "base/observer_list.h"
-#include "chromeos/chromeos_export.h"
-#include "chromeos/dbus/bluetooth_agent_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"
-namespace chromeos {
+namespace bluez {
class FakeBluetoothAgentManagerClient;
// FakeBluetoothAgentServiceProvider simulates the behavior of a local
// Bluetooth agent object and is used both in test cases in place of a
// mock and on the Linux desktop.
-class CHROMEOS_EXPORT FakeBluetoothAgentServiceProvider
+class DEVICE_BLUETOOTH_EXPORT FakeBluetoothAgentServiceProvider
: public BluetoothAgentServiceProvider {
public:
FakeBluetoothAgentServiceProvider(const dbus::ObjectPath& object_path,
- Delegate *delegate);
+ Delegate* delegate);
~FakeBluetoothAgentServiceProvider() override;
// Each of these calls the equivalent BluetoothAgentServiceProvider::Delegate
@@ -37,7 +37,8 @@ class CHROMEOS_EXPORT FakeBluetoothAgentServiceProvider
virtual void RequestPasskey(const dbus::ObjectPath& device_path,
const Delegate::PasskeyCallback& callback);
virtual void DisplayPasskey(const dbus::ObjectPath& device_path,
- uint32 passkey, int16 entered);
+ uint32 passkey,
+ int16 entered);
virtual void RequestConfirmation(
const dbus::ObjectPath& device_path,
uint32 passkey,
@@ -45,10 +46,9 @@ class CHROMEOS_EXPORT FakeBluetoothAgentServiceProvider
virtual void RequestAuthorization(
const dbus::ObjectPath& device_path,
const Delegate::ConfirmationCallback& callback);
- virtual void AuthorizeService(
- const dbus::ObjectPath& device_path,
- const std::string& uuid,
- const Delegate::ConfirmationCallback& callback);
+ virtual void AuthorizeService(const dbus::ObjectPath& device_path,
+ const std::string& uuid,
+ const Delegate::ConfirmationCallback& callback);
virtual void Cancel();
private:
@@ -63,6 +63,6 @@ class CHROMEOS_EXPORT FakeBluetoothAgentServiceProvider
Delegate* delegate_;
};
-} // namespace chromeos
+} // namespace bluez
#endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698