1234567891011121314151617181920212223242526272829303132 |
- // Copyright 2020 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 ASH_COMPONENTS_PHONEHUB_FAKE_FEATURE_STATUS_PROVIDER_H_
- #define ASH_COMPONENTS_PHONEHUB_FAKE_FEATURE_STATUS_PROVIDER_H_
- #include "ash/components/phonehub/feature_status_provider.h"
- namespace ash {
- namespace phonehub {
- class FakeFeatureStatusProvider : public FeatureStatusProvider {
- public:
- // Defaults initial status to kEnabledAndConnected.
- FakeFeatureStatusProvider();
- FakeFeatureStatusProvider(FeatureStatus initial_status);
- ~FakeFeatureStatusProvider() override;
- void SetStatus(FeatureStatus status);
- // FeatureStatusProvider:
- FeatureStatus GetStatus() const override;
- private:
- FeatureStatus status_;
- };
- } // namespace phonehub
- } // namespace ash
- #endif // ASH_COMPONENTS_PHONEHUB_FAKE_FEATURE_STATUS_PROVIDER_H_
|