fake_feature_status_provider.h 921 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2020 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_FEATURE_STATUS_PROVIDER_H_
  5. #define ASH_COMPONENTS_PHONEHUB_FAKE_FEATURE_STATUS_PROVIDER_H_
  6. #include "ash/components/phonehub/feature_status_provider.h"
  7. namespace ash {
  8. namespace phonehub {
  9. class FakeFeatureStatusProvider : public FeatureStatusProvider {
  10. public:
  11. // Defaults initial status to kEnabledAndConnected.
  12. FakeFeatureStatusProvider();
  13. FakeFeatureStatusProvider(FeatureStatus initial_status);
  14. ~FakeFeatureStatusProvider() override;
  15. void SetStatus(FeatureStatus status);
  16. // FeatureStatusProvider:
  17. FeatureStatus GetStatus() const override;
  18. private:
  19. FeatureStatus status_;
  20. };
  21. } // namespace phonehub
  22. } // namespace ash
  23. #endif // ASH_COMPONENTS_PHONEHUB_FAKE_FEATURE_STATUS_PROVIDER_H_