| 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 #include "device/bluetooth/dbus/fake_bluetooth_profile_manager_client.h" | 5 #include "device/bluetooth/dbus/fake_bluetooth_profile_manager_client.h" |
| 6 | 6 |
| 7 #include "base/location.h" | 7 #include "base/location.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "base/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| 11 #include "dbus/bus.h" | 11 #include "dbus/bus.h" |
| 12 #include "dbus/message.h" | 12 #include "dbus/message.h" |
| 13 #include "dbus/object_proxy.h" | 13 #include "dbus/object_proxy.h" |
| 14 #include "device/bluetooth/dbus/fake_bluetooth_profile_service_provider.h" | 14 #include "device/bluetooth/dbus/fake_bluetooth_profile_service_provider.h" |
| 15 #include "third_party/cros_system_api/dbus/service_constants.h" | 15 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 16 | 16 |
| 17 namespace bluez { | 17 namespace bluez { |
| 18 | 18 |
| 19 const char FakeBluetoothProfileManagerClient::kL2capUuid[] = | 19 const char FakeBluetoothProfileManagerClient::kL2capUuid[] = |
| 20 "4d995052-33cc-4fdf-b446-75f32942a076"; | 20 "4d995052-33cc-4fdf-b446-75f32942a076"; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 FakeBluetoothProfileServiceProvider* | 102 FakeBluetoothProfileServiceProvider* |
| 103 FakeBluetoothProfileManagerClient::GetProfileServiceProvider( | 103 FakeBluetoothProfileManagerClient::GetProfileServiceProvider( |
| 104 const std::string& uuid) { | 104 const std::string& uuid) { |
| 105 ProfileMap::iterator iter = profile_map_.find(uuid); | 105 ProfileMap::iterator iter = profile_map_.find(uuid); |
| 106 if (iter == profile_map_.end()) | 106 if (iter == profile_map_.end()) |
| 107 return nullptr; | 107 return nullptr; |
| 108 return service_provider_map_[iter->second]; | 108 return service_provider_map_[iter->second]; |
| 109 } | 109 } |
| 110 | 110 |
| 111 } // namespace bluez | 111 } // namespace bluez |
| OLD | NEW |