| // Copyright 2021 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef COMPONENTS_ARC_TEST_FAKE_LOCK_SCREEN_INSTANCE_H_ |
| #define COMPONENTS_ARC_TEST_FAKE_LOCK_SCREEN_INSTANCE_H_ |
| |
| #include "base/optional.h" |
| #include "components/arc/mojom/lock_screen.mojom.h" |
| |
| namespace arc { |
| |
| class FakeLockScreenInstance : public mojom::LockScreenInstance { |
| public: |
| FakeLockScreenInstance(); |
| FakeLockScreenInstance(const FakeLockScreenInstance&) = delete; |
| FakeLockScreenInstance& operator=(const FakeLockScreenInstance&) = delete; |
| ~FakeLockScreenInstance() override; |
| |
| // mojom::LockScreenInstance overrides: |
| void SetDeviceLocked(bool is_locked) override; |
| |
| const base::Optional<bool>& is_locked() const { return is_locked_; } |
| |
| private: |
| base::Optional<bool> is_locked_; |
| }; |
| |
| } // namespace arc |
| |
| #endif // COMPONENTS_ARC_TEST_FAKE_LOCK_SCREEN_INSTANCE_H_ |