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 "components/proximity_auth/ble/bluetooth_low_energy_connection_finder.h
" | 5 #include "components/proximity_auth/ble/bluetooth_low_energy_connection_finder.h
" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
13 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
14 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
15 #include "base/time/time.h" | 16 #include "base/time/time.h" |
16 #include "components/proximity_auth/ble/bluetooth_low_energy_device_whitelist.h" | 17 #include "components/proximity_auth/ble/bluetooth_low_energy_device_whitelist.h" |
17 #include "components/proximity_auth/fake_connection.h" | 18 #include "components/proximity_auth/fake_connection.h" |
18 #include "components/proximity_auth/proximity_auth_test_util.h" | 19 #include "components/proximity_auth/proximity_auth_test_util.h" |
19 #include "components/proximity_auth/remote_device.h" | 20 #include "components/proximity_auth/remote_device.h" |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 // Completing the connection. | 484 // Completing the connection. |
484 base::RunLoop run_loop; | 485 base::RunLoop run_loop; |
485 ASSERT_FALSE(last_found_connection_); | 486 ASSERT_FALSE(last_found_connection_); |
486 connection->SetStatus(Connection::IN_PROGRESS); | 487 connection->SetStatus(Connection::IN_PROGRESS); |
487 connection->SetStatus(Connection::CONNECTED); | 488 connection->SetStatus(Connection::CONNECTED); |
488 run_loop.RunUntilIdle(); | 489 run_loop.RunUntilIdle(); |
489 EXPECT_TRUE(last_found_connection_); | 490 EXPECT_TRUE(last_found_connection_); |
490 } | 491 } |
491 | 492 |
492 } // namespace proximity_auth | 493 } // namespace proximity_auth |
OLD | NEW |