OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/bluez/bluetooth_adapter_profile_bluez.h" | 5 #include "device/bluetooth/bluez/bluetooth_adapter_profile_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/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
11 #include "base/test/scoped_task_environment.h" | 12 #include "base/test/scoped_task_environment.h" |
12 #include "device/bluetooth/bluetooth_adapter.h" | 13 #include "device/bluetooth/bluetooth_adapter.h" |
13 #include "device/bluetooth/bluetooth_adapter_factory.h" | 14 #include "device/bluetooth/bluetooth_adapter_factory.h" |
14 #include "device/bluetooth/bluetooth_uuid.h" | 15 #include "device/bluetooth/bluetooth_uuid.h" |
15 #include "device/bluetooth/bluez/bluetooth_adapter_bluez.h" | 16 #include "device/bluetooth/bluez/bluetooth_adapter_bluez.h" |
16 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h" | 17 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h" |
17 #include "device/bluetooth/dbus/bluez_dbus_manager.h" | 18 #include "device/bluetooth/dbus/bluez_dbus_manager.h" |
18 #include "device/bluetooth/dbus/fake_bluetooth_adapter_client.h" | 19 #include "device/bluetooth/dbus/fake_bluetooth_adapter_client.h" |
19 #include "device/bluetooth/dbus/fake_bluetooth_agent_manager_client.h" | 20 #include "device/bluetooth/dbus/fake_bluetooth_agent_manager_client.h" |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 base::Unretained(this))); | 380 base::Unretained(this))); |
380 | 381 |
381 base::RunLoop().RunUntilIdle(); | 382 base::RunLoop().RunUntilIdle(); |
382 | 383 |
383 EXPECT_FALSE(profile_user_ptr_); | 384 EXPECT_FALSE(profile_user_ptr_); |
384 EXPECT_EQ(0U, success_callback_count_); | 385 EXPECT_EQ(0U, success_callback_count_); |
385 EXPECT_EQ(2U, error_callback_count_); | 386 EXPECT_EQ(2U, error_callback_count_); |
386 } | 387 } |
387 | 388 |
388 } // namespace bluez | 389 } // namespace bluez |
OLD | NEW |