123456789101112131415161718192021222324252627282930313233343536373839 |
- // 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_DO_NOT_DISTURB_CONTROLLER_H_
- #define ASH_COMPONENTS_PHONEHUB_FAKE_DO_NOT_DISTURB_CONTROLLER_H_
- #include "ash/components/phonehub/do_not_disturb_controller.h"
- namespace ash {
- namespace phonehub {
- class FakeDoNotDisturbController : public DoNotDisturbController {
- public:
- FakeDoNotDisturbController();
- ~FakeDoNotDisturbController() override;
- // DoNotDisturbController:
- bool IsDndEnabled() const override;
- void SetDoNotDisturbStateInternal(bool is_dnd_enabled,
- bool can_request_new_dnd_state) override;
- void RequestNewDoNotDisturbState(bool enabled) override;
- bool CanRequestNewDndState() const override;
- void SetShouldRequestFail(bool should_request_fail);
- private:
- bool is_dnd_enabled_ = false;
- bool can_request_new_dnd_state_ = false;
- // Indicates if the connection to the phone is working correctly. If it is
- // true, there is a problem and the phone cannot change its state.
- bool should_request_fail_ = false;
- };
- } // namespace phonehub
- } // namespace ash
- #endif // ASH_COMPONENTS_PHONEHUB_FAKE_DO_NOT_DISTURB_CONTROLLER_H_
|