| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/proximity_auth/bluetooth_connection_finder.h" | 5 #include "components/proximity_auth/bluetooth_connection_finder.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" |
| 8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 12 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 13 #include "components/proximity_auth/proximity_auth_test_util.h" | 14 #include "components/proximity_auth/proximity_auth_test_util.h" |
| 14 #include "components/proximity_auth/remote_device.h" | 15 #include "components/proximity_auth/remote_device.h" |
| 15 #include "components/proximity_auth/wire_message.h" | 16 #include "components/proximity_auth/wire_message.h" |
| 16 #include "device/bluetooth/bluetooth_adapter_factory.h" | 17 #include "device/bluetooth/bluetooth_adapter_factory.h" |
| 17 #include "device/bluetooth/bluetooth_uuid.h" | 18 #include "device/bluetooth/bluetooth_uuid.h" |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 | 355 |
| 355 // Successfully connect to the Bluetooth device. | 356 // Successfully connect to the Bluetooth device. |
| 356 ON_CALL(*adapter_, GetDevice(kTestRemoteDeviceBluetoothAddress)) | 357 ON_CALL(*adapter_, GetDevice(kTestRemoteDeviceBluetoothAddress)) |
| 357 .WillByDefault(Return(bluetooth_device_.get())); | 358 .WillByDefault(Return(bluetooth_device_.get())); |
| 358 MockConnection* connection = connection_finder_.ExpectCreateConnection(); | 359 MockConnection* connection = connection_finder_.ExpectCreateConnection(); |
| 359 connection_finder_.seek_callback().Run(); | 360 connection_finder_.seek_callback().Run(); |
| 360 SimulateDeviceConnection(connection); | 361 SimulateDeviceConnection(connection); |
| 361 } | 362 } |
| 362 | 363 |
| 363 } // namespace proximity_auth | 364 } // namespace proximity_auth |
| OLD | NEW |