fake_global_state_feature_manager.h 958 B

12345678910111213141516171819202122232425262728293031
  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_SERVICES_MULTIDEVICE_SETUP_FAKE_GLOBAL_STATE_FEATURE_MANAGER_H_
  5. #define ASH_SERVICES_MULTIDEVICE_SETUP_FAKE_GLOBAL_STATE_FEATURE_MANAGER_H_
  6. #include "ash/services/multidevice_setup/global_state_feature_manager.h"
  7. namespace ash {
  8. namespace multidevice_setup {
  9. // Test GlobalStateFeatureManager implementation.
  10. class FakeGlobalStateFeatureManager : public GlobalStateFeatureManager {
  11. public:
  12. FakeGlobalStateFeatureManager();
  13. ~FakeGlobalStateFeatureManager() override;
  14. // GlobalStateFeatureManager:
  15. void SetIsFeatureEnabled(bool enabled) override;
  16. bool IsFeatureEnabled() override;
  17. private:
  18. bool is_feature_enabled_ = false;
  19. };
  20. } // namespace multidevice_setup
  21. } // namespace ash
  22. #endif // ASH_SERVICES_MULTIDEVICE_SETUP_FAKE_GLOBAL_STATE_FEATURE_MANAGER_H_