Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: chrome/browser/signin/easy_unlock_screenlock_state_handler_unittest.cc

Issue 585213002: [Easy signin] Wire up userClick auth attempt to easy unlock app and back (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@easy_signin_focused_user_changed_observer
Patch Set: fix screenlock private test Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/signin/easy_unlock_auth_attempt.cc ('k') | chrome/browser/signin/easy_unlock_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698