| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/bluetooth_socket_bluez.h" | 5 #include "device/bluetooth/bluez/bluetooth_socket_bluez.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 12 #include "device/bluetooth/bluetooth_adapter.h" | 12 #include "device/bluetooth/bluetooth_adapter.h" |
| 13 #include "device/bluetooth/bluetooth_adapter_bluez.h" | |
| 14 #include "device/bluetooth/bluetooth_adapter_factory.h" | 13 #include "device/bluetooth/bluetooth_adapter_factory.h" |
| 15 #include "device/bluetooth/bluetooth_device.h" | 14 #include "device/bluetooth/bluetooth_device.h" |
| 16 #include "device/bluetooth/bluetooth_device_bluez.h" | |
| 17 #include "device/bluetooth/bluetooth_socket.h" | 15 #include "device/bluetooth/bluetooth_socket.h" |
| 18 #include "device/bluetooth/bluetooth_socket_thread.h" | 16 #include "device/bluetooth/bluetooth_socket_thread.h" |
| 19 #include "device/bluetooth/bluetooth_uuid.h" | 17 #include "device/bluetooth/bluetooth_uuid.h" |
| 18 #include "device/bluetooth/bluez/bluetooth_adapter_bluez.h" |
| 19 #include "device/bluetooth/bluez/bluetooth_device_bluez.h" |
| 20 #include "device/bluetooth/dbus/bluez_dbus_manager.h" | 20 #include "device/bluetooth/dbus/bluez_dbus_manager.h" |
| 21 #include "device/bluetooth/dbus/fake_bluetooth_adapter_client.h" | 21 #include "device/bluetooth/dbus/fake_bluetooth_adapter_client.h" |
| 22 #include "device/bluetooth/dbus/fake_bluetooth_agent_manager_client.h" | 22 #include "device/bluetooth/dbus/fake_bluetooth_agent_manager_client.h" |
| 23 #include "device/bluetooth/dbus/fake_bluetooth_device_client.h" | 23 #include "device/bluetooth/dbus/fake_bluetooth_device_client.h" |
| 24 #include "device/bluetooth/dbus/fake_bluetooth_gatt_service_client.h" | 24 #include "device/bluetooth/dbus/fake_bluetooth_gatt_service_client.h" |
| 25 #include "device/bluetooth/dbus/fake_bluetooth_input_client.h" | 25 #include "device/bluetooth/dbus/fake_bluetooth_input_client.h" |
| 26 #include "device/bluetooth/dbus/fake_bluetooth_profile_manager_client.h" | 26 #include "device/bluetooth/dbus/fake_bluetooth_profile_manager_client.h" |
| 27 #include "device/bluetooth/dbus/fake_bluetooth_profile_service_provider.h" | 27 #include "device/bluetooth/dbus/fake_bluetooth_profile_service_provider.h" |
| 28 #include "net/base/io_buffer.h" | 28 #include "net/base/io_buffer.h" |
| 29 #include "net/base/net_errors.h" | 29 #include "net/base/net_errors.h" |
| (...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 | 626 |
| 627 server_socket = nullptr; | 627 server_socket = nullptr; |
| 628 | 628 |
| 629 message_loop_.RunUntilIdle(); | 629 message_loop_.RunUntilIdle(); |
| 630 | 630 |
| 631 EXPECT_EQ(2U, success_callback_count_); | 631 EXPECT_EQ(2U, success_callback_count_); |
| 632 EXPECT_EQ(2U, error_callback_count_); | 632 EXPECT_EQ(2U, error_callback_count_); |
| 633 } | 633 } |
| 634 | 634 |
| 635 } // namespace bluez | 635 } // namespace bluez |
| OLD | NEW |