fake_connection_scheduler.h 893 B

12345678910111213141516171819202122232425262728293031323334
  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_CONNECTION_SCHEDULER_H_
  5. #define ASH_COMPONENTS_PHONEHUB_FAKE_CONNECTION_SCHEDULER_H_
  6. #include <stddef.h>
  7. #include "ash/components/phonehub/connection_scheduler.h"
  8. namespace ash {
  9. namespace phonehub {
  10. class FakeConnectionScheduler : public ConnectionScheduler {
  11. public:
  12. FakeConnectionScheduler();
  13. ~FakeConnectionScheduler() override;
  14. size_t num_schedule_connection_now_calls() const {
  15. return num_schedule_connection_now_calls_;
  16. }
  17. private:
  18. // ConnectionScheduler:
  19. void ScheduleConnectionNow() override;
  20. size_t num_schedule_connection_now_calls_ = 0u;
  21. };
  22. } // namespace phonehub
  23. } // namespace ash
  24. #endif // ASH_COMPONENTS_PHONEHUB_FAKE_CONNECTION_SCHEDULER_H_