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 "chrome/browser/signin/easy_unlock_auth_attempt.h" | 5 #include "chrome/browser/signin/easy_unlock_auth_attempt.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "build/build_config.h" |
8 #include "chrome/browser/signin/easy_unlock_app_manager.h" | 11 #include "chrome/browser/signin/easy_unlock_app_manager.h" |
9 #include "components/proximity_auth/screenlock_bridge.h" | 12 #include "components/proximity_auth/screenlock_bridge.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
11 | 14 |
12 #if defined(OS_CHROMEOS) | 15 #if defined(OS_CHROMEOS) |
13 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h" | 16 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h" |
14 #endif | 17 #endif |
15 | 18 |
16 namespace { | 19 namespace { |
17 | 20 |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 EXPECT_EQ(TestLockHandler::STATE_ATTEMPTING_SIGNIN, lock_handler_->state()); | 563 EXPECT_EQ(TestLockHandler::STATE_ATTEMPTING_SIGNIN, lock_handler_->state()); |
561 | 564 |
562 auth_attempt_->FinalizeSignin(test_account_id1_, GetWrappedSecret(), | 565 auth_attempt_->FinalizeSignin(test_account_id1_, GetWrappedSecret(), |
563 GetSessionKey()); | 566 GetSessionKey()); |
564 | 567 |
565 EXPECT_EQ(TestLockHandler::STATE_SIGNIN_DONE, lock_handler_->state()); | 568 EXPECT_EQ(TestLockHandler::STATE_SIGNIN_DONE, lock_handler_->state()); |
566 } | 569 } |
567 #endif // defined(OS_CHROMEOS) | 570 #endif // defined(OS_CHROMEOS) |
568 | 571 |
569 } // namespace | 572 } // namespace |
OLD | NEW |