Index: device/bluetooth/dbus/fake_bluetooth_gatt_manager_client.cc |
diff --git a/chromeos/dbus/fake_bluetooth_gatt_manager_client.cc b/device/bluetooth/dbus/fake_bluetooth_gatt_manager_client.cc |
similarity index 87% |
rename from chromeos/dbus/fake_bluetooth_gatt_manager_client.cc |
rename to device/bluetooth/dbus/fake_bluetooth_gatt_manager_client.cc |
index c09232f5352b6405d76ebd04697b1aba727c35a7..284a17c7c267265994ac5cf1f644323d166b2e1e 100644 |
--- a/chromeos/dbus/fake_bluetooth_gatt_manager_client.cc |
+++ b/device/bluetooth/dbus/fake_bluetooth_gatt_manager_client.cc |
@@ -2,25 +2,22 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "chromeos/dbus/fake_bluetooth_gatt_manager_client.h" |
+#include "device/bluetooth/dbus/fake_bluetooth_gatt_manager_client.h" |
#include "base/logging.h" |
-#include "chromeos/dbus/fake_bluetooth_gatt_characteristic_service_provider.h" |
-#include "chromeos/dbus/fake_bluetooth_gatt_descriptor_service_provider.h" |
-#include "chromeos/dbus/fake_bluetooth_gatt_service_service_provider.h" |
+#include "device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_service_provider.h" |
+#include "device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_service_provider.h" |
+#include "device/bluetooth/dbus/fake_bluetooth_gatt_service_service_provider.h" |
#include "third_party/cros_system_api/dbus/service_constants.h" |
-namespace chromeos { |
+namespace bluez { |
-FakeBluetoothGattManagerClient::FakeBluetoothGattManagerClient() { |
-} |
+FakeBluetoothGattManagerClient::FakeBluetoothGattManagerClient() {} |
-FakeBluetoothGattManagerClient::~FakeBluetoothGattManagerClient() { |
-} |
+FakeBluetoothGattManagerClient::~FakeBluetoothGattManagerClient() {} |
// DBusClient override. |
-void FakeBluetoothGattManagerClient::Init(dbus::Bus* bus) { |
-} |
+void FakeBluetoothGattManagerClient::Init(dbus::Bus* bus) {} |
// BluetoothGattManagerClient overrides. |
void FakeBluetoothGattManagerClient::RegisterService( |
@@ -69,9 +66,8 @@ void FakeBluetoothGattManagerClient::UnregisterService( |
// Return error if the GATT service wasn't registered before. |
ServiceProvider* provider = &iter->second; |
if (!provider->first) { |
- error_callback.Run( |
- bluetooth_gatt_manager::kErrorDoesNotExist, |
- "GATT service not registered: " + service_path.value()); |
+ error_callback.Run(bluetooth_gatt_manager::kErrorDoesNotExist, |
+ "GATT service not registered: " + service_path.value()); |
return; |
} |
@@ -108,8 +104,7 @@ void FakeBluetoothGattManagerClient::RegisterCharacteristicServiceProvider( |
void FakeBluetoothGattManagerClient::RegisterDescriptorServiceProvider( |
FakeBluetoothGattDescriptorServiceProvider* provider) { |
// Ignore, if a service provider is already registered for the object path. |
- DescriptorMap::iterator iter = |
- descriptor_map_.find(provider->object_path()); |
+ DescriptorMap::iterator iter = descriptor_map_.find(provider->object_path()); |
if (iter != descriptor_map_.end()) { |
VLOG(1) << "GATT descriptor service provider already registered for " |
<< "object path: " << provider->object_path().value(); |
@@ -120,8 +115,7 @@ void FakeBluetoothGattManagerClient::RegisterDescriptorServiceProvider( |
void FakeBluetoothGattManagerClient::UnregisterServiceServiceProvider( |
FakeBluetoothGattServiceServiceProvider* provider) { |
- ServiceMap::iterator iter = |
- service_map_.find(provider->object_path()); |
+ ServiceMap::iterator iter = service_map_.find(provider->object_path()); |
if (iter != service_map_.end() && iter->second.second == provider) |
service_map_.erase(iter); |
} |
@@ -147,7 +141,7 @@ FakeBluetoothGattManagerClient::GetServiceServiceProvider( |
FakeBluetoothGattCharacteristicServiceProvider* |
FakeBluetoothGattManagerClient::GetCharacteristicServiceProvider( |
- const dbus::ObjectPath& object_path) const { |
+ const dbus::ObjectPath& object_path) const { |
CharacteristicMap::const_iterator iter = |
characteristic_map_.find(object_path); |
if (iter == characteristic_map_.end()) |
@@ -172,4 +166,4 @@ bool FakeBluetoothGattManagerClient::IsServiceRegistered( |
return iter->second.first; |
} |
-} // namespace chromeos |
+} // namespace bluez |