fake_screen_lock_manager.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright 2021 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. #ifndef ASH_COMPONENTS_PHONEHUB_FAKE_SCREEN_LOCK_MANAGER_H_
  5. #define ASH_COMPONENTS_PHONEHUB_FAKE_SCREEN_LOCK_MANAGER_H_
  6. #include "ash/components/phonehub/screen_lock_manager.h"
  7. namespace ash {
  8. namespace phonehub {
  9. // A fake versions of the core business logic of ScreenLockManager.
  10. class FakeScreenLockManager : public ScreenLockManager {
  11. public:
  12. explicit FakeScreenLockManager(
  13. LockStatus lock_status = LockStatus::kLockedOn);
  14. ~FakeScreenLockManager() override;
  15. FakeScreenLockManager(const FakeScreenLockManager&) = delete;
  16. FakeScreenLockManager& operator=(const FakeScreenLockManager&) = delete;
  17. // ScreenLockManager:
  18. void SetLockStatusInternal(LockStatus lock_status) override;
  19. LockStatus GetLockStatus() const override;
  20. private:
  21. LockStatus lock_status_;
  22. };
  23. } // namespace phonehub
  24. } // namespace ash
  25. #endif // ASH_COMPONENTS_PHONEHUB_FAKE_SCREEN_LOCK_MANAGER_H_