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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 virtual AuthType GetAuthType(const std::string& user_email) const OVERRIDE { | 87 virtual AuthType GetAuthType(const std::string& user_email) const OVERRIDE { |
88 EXPECT_EQ(user_email_, user_email); | 88 EXPECT_EQ(user_email_, user_email); |
89 return auth_type_; | 89 return auth_type_; |
90 } | 90 } |
91 | 91 |
92 virtual void Unlock(const std::string& user_email) OVERRIDE { | 92 virtual void Unlock(const std::string& user_email) OVERRIDE { |
93 ASSERT_FALSE(true) << "Should not be reached."; | 93 ASSERT_FALSE(true) << "Should not be reached."; |
94 } | 94 } |
95 | 95 |
| 96 virtual void AttemptEasySignin(const std::string& user_email, |
| 97 const std::string& secret, |
| 98 const std::string& key_label) OVERRIDE { |
| 99 ASSERT_FALSE(true) << "Should not be reached."; |
| 100 } |
| 101 |
96 // Utility methods used by tests: | 102 // Utility methods used by tests: |
97 | 103 |
98 // Gets last set auth value. | 104 // Gets last set auth value. |
99 base::string16 GetAuthValue() const { | 105 base::string16 GetAuthValue() const { |
100 return auth_value_; | 106 return auth_value_; |
101 } | 107 } |
102 | 108 |
103 // Sets the auth value. | 109 // Sets the auth value. |
104 void SetAuthValue(const base::string16& value) { | 110 void SetAuthValue(const base::string16& value) { |
105 auth_value_ = value; | 111 auth_value_ = value; |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 state_handler_->ChangeState( | 577 state_handler_->ChangeState( |
572 EasyUnlockScreenlockStateHandler::STATE_AUTHENTICATED); | 578 EasyUnlockScreenlockStateHandler::STATE_AUTHENTICATED); |
573 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount()); | 579 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount()); |
574 EXPECT_TRUE(lock_handler_->HasCustomIcon()); | 580 EXPECT_TRUE(lock_handler_->HasCustomIcon()); |
575 EXPECT_EQ(ScreenlockBridge::LockHandler::USER_CLICK, | 581 EXPECT_EQ(ScreenlockBridge::LockHandler::USER_CLICK, |
576 lock_handler_->GetAuthType(user_email_)); | 582 lock_handler_->GetAuthType(user_email_)); |
577 EXPECT_TRUE(lock_handler_->CustomIconHardlocksOnClick()); | 583 EXPECT_TRUE(lock_handler_->CustomIconHardlocksOnClick()); |
578 } | 584 } |
579 | 585 |
580 } // namespace | 586 } // namespace |
OLD | NEW |