fake_lock_handler.cc 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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
  3. // found in the LICENSE file.
  4. #include "ash/components/proximity_auth/fake_lock_handler.h"
  5. namespace proximity_auth {
  6. FakeLockHandler::FakeLockHandler() {}
  7. FakeLockHandler::~FakeLockHandler() {}
  8. void FakeLockHandler::ShowBannerMessage(const std::u16string& message,
  9. bool is_warning) {}
  10. void FakeLockHandler::ShowUserPodCustomIcon(
  11. const AccountId& account_id,
  12. const ScreenlockBridge::UserPodCustomIconInfo& icon_info) {}
  13. void FakeLockHandler::HideUserPodCustomIcon(const AccountId& account_id) {}
  14. void FakeLockHandler::SetSmartLockState(const AccountId& account_id,
  15. ash::SmartLockState state) {
  16. smart_lock_state_ = state;
  17. }
  18. void FakeLockHandler::NotifySmartLockAuthResult(const AccountId& account_id,
  19. bool successful) {
  20. smart_lock_auth_result_ = successful;
  21. }
  22. void FakeLockHandler::EnableInput() {}
  23. void FakeLockHandler::SetAuthType(const AccountId& account_id,
  24. mojom::AuthType auth_type,
  25. const std::u16string& auth_value) {
  26. latest_set_auth_type_ = auth_type;
  27. }
  28. mojom::AuthType FakeLockHandler::GetAuthType(
  29. const AccountId& account_id) const {
  30. return latest_set_auth_type_;
  31. }
  32. FakeLockHandler::ScreenType FakeLockHandler::GetScreenType() const {
  33. return FakeLockHandler::LOCK_SCREEN;
  34. }
  35. void FakeLockHandler::Unlock(const AccountId& account_id) {
  36. unlock_called_++;
  37. }
  38. void FakeLockHandler::AttemptEasySignin(const AccountId& account_id,
  39. const std::string& secret,
  40. const std::string& key_label) {}
  41. void FakeLockHandler::ClearSmartLockState() {
  42. smart_lock_state_.reset();
  43. }
  44. void FakeLockHandler::ClearSmartLockAuthResult() {
  45. smart_lock_auth_result_.reset();
  46. }
  47. } // namespace proximity_auth