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/remote_device_life_cycle_impl.h" | 5 #include "components/proximity_auth/remote_device_life_cycle_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
9 #include "base/test/test_simple_task_runner.h" | 12 #include "base/test/test_simple_task_runner.h" |
10 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
11 #include "components/proximity_auth/authenticator.h" | 14 #include "components/proximity_auth/authenticator.h" |
12 #include "components/proximity_auth/connection_finder.h" | 15 #include "components/proximity_auth/connection_finder.h" |
13 #include "components/proximity_auth/fake_connection.h" | 16 #include "components/proximity_auth/fake_connection.h" |
14 #include "components/proximity_auth/messenger.h" | 17 #include "components/proximity_auth/messenger.h" |
15 #include "components/proximity_auth/proximity_auth_test_util.h" | 18 #include "components/proximity_auth/proximity_auth_test_util.h" |
16 #include "components/proximity_auth/secure_context.h" | 19 #include "components/proximity_auth/secure_context.h" |
17 #include "components/proximity_auth/wire_message.h" | 20 #include "components/proximity_auth/wire_message.h" |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 | 305 |
303 // Authentication succeeds on second pass. | 306 // Authentication succeeds on second pass. |
304 Connection* connection = OnConnectionFound(); | 307 Connection* connection = OnConnectionFound(); |
305 Authenticate(Authenticator::Result::SUCCESS); | 308 Authenticate(Authenticator::Result::SUCCESS); |
306 EXPECT_TRUE(life_cycle_.GetMessenger()); | 309 EXPECT_TRUE(life_cycle_.GetMessenger()); |
307 EXPECT_CALL(*this, OnLifeCycleStateChanged(_, _)); | 310 EXPECT_CALL(*this, OnLifeCycleStateChanged(_, _)); |
308 connection->Disconnect(); | 311 connection->Disconnect(); |
309 } | 312 } |
310 | 313 |
311 } // namespace proximity_auth | 314 } // namespace proximity_auth |
OLD | NEW |