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/unlock_manager.h" | 5 #include "components/proximity_auth/unlock_manager.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/test/test_simple_task_runner.h" | 10 #include "base/test/test_simple_task_runner.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
| 12 #include "build/build_config.h" |
12 #include "components/proximity_auth/fake_secure_context.h" | 13 #include "components/proximity_auth/fake_secure_context.h" |
13 #include "components/proximity_auth/logging/logging.h" | 14 #include "components/proximity_auth/logging/logging.h" |
14 #include "components/proximity_auth/messenger.h" | 15 #include "components/proximity_auth/messenger.h" |
15 #include "components/proximity_auth/mock_proximity_auth_client.h" | 16 #include "components/proximity_auth/mock_proximity_auth_client.h" |
16 #include "components/proximity_auth/proximity_auth_test_util.h" | 17 #include "components/proximity_auth/proximity_auth_test_util.h" |
17 #include "components/proximity_auth/proximity_monitor.h" | 18 #include "components/proximity_auth/proximity_monitor.h" |
18 #include "components/proximity_auth/remote_device_life_cycle.h" | 19 #include "components/proximity_auth/remote_device_life_cycle.h" |
19 #include "components/proximity_auth/remote_status_update.h" | 20 #include "components/proximity_auth/remote_status_update.h" |
20 #include "components/proximity_auth/screenlock_bridge.h" | 21 #include "components/proximity_auth/screenlock_bridge.h" |
21 #include "components/proximity_auth/secure_context.h" | 22 #include "components/proximity_auth/secure_context.h" |
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 })); | 922 })); |
922 | 923 |
923 EXPECT_CALL(messenger_, RequestDecryption(kChallenge)); | 924 EXPECT_CALL(messenger_, RequestDecryption(kChallenge)); |
924 unlock_manager_->OnAuthAttempted(ScreenlockBridge::LockHandler::USER_CLICK); | 925 unlock_manager_->OnAuthAttempted(ScreenlockBridge::LockHandler::USER_CLICK); |
925 | 926 |
926 EXPECT_CALL(proximity_auth_client_, FinalizeSignin(std::string())); | 927 EXPECT_CALL(proximity_auth_client_, FinalizeSignin(std::string())); |
927 unlock_manager_->OnDecryptResponse(std::string()); | 928 unlock_manager_->OnDecryptResponse(std::string()); |
928 } | 929 } |
929 | 930 |
930 } // namespace proximity_auth | 931 } // namespace proximity_auth |
OLD | NEW |