OLD | NEW |
1 // Copyright 2016 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 "components/arc/bluetooth/arc_bluetooth_bridge.h" | 5 #include "components/arc/bluetooth/arc_bluetooth_bridge.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "base/memory/ptr_util.h" |
11 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
12 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
13 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
14 #include "components/arc/arc_bridge_service.h" | 15 #include "components/arc/arc_bridge_service.h" |
15 #include "components/arc/bluetooth/bluetooth_type_converters.h" | 16 #include "components/arc/bluetooth/bluetooth_type_converters.h" |
16 #include "components/arc/common/bluetooth.mojom.h" | 17 #include "components/arc/common/bluetooth.mojom.h" |
17 #include "components/arc/test/fake_bluetooth_instance.h" | 18 #include "components/arc/test/fake_bluetooth_instance.h" |
18 #include "device/bluetooth/dbus/bluez_dbus_manager.h" | 19 #include "device/bluetooth/dbus/bluez_dbus_manager.h" |
19 #include "device/bluetooth/dbus/fake_bluetooth_adapter_client.h" | 20 #include "device/bluetooth/dbus/fake_bluetooth_adapter_client.h" |
20 #include "device/bluetooth/dbus/fake_bluetooth_device_client.h" | 21 #include "device/bluetooth/dbus/fake_bluetooth_device_client.h" |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 BroadcastAdvertisement(handle, std::move(adv_data)); | 323 BroadcastAdvertisement(handle, std::move(adv_data)); |
323 EXPECT_EQ(mojom::BluetoothGattStatus::GATT_SUCCESS, status); | 324 EXPECT_EQ(mojom::BluetoothGattStatus::GATT_SUCCESS, status); |
324 EXPECT_EQ(1, NumActiveAdvertisements()); | 325 EXPECT_EQ(1, NumActiveAdvertisements()); |
325 | 326 |
326 status = ReleaseAdvertisementHandle(handle); | 327 status = ReleaseAdvertisementHandle(handle); |
327 EXPECT_EQ(mojom::BluetoothGattStatus::GATT_SUCCESS, status); | 328 EXPECT_EQ(mojom::BluetoothGattStatus::GATT_SUCCESS, status); |
328 EXPECT_EQ(0, NumActiveAdvertisements()); | 329 EXPECT_EQ(0, NumActiveAdvertisements()); |
329 } | 330 } |
330 | 331 |
331 } // namespace arc | 332 } // namespace arc |
OLD | NEW |