fake_detailed_view_delegate.h 997 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2022 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_SYSTEM_TRAY_FAKE_DETAILED_VIEW_DELEGATE_H_
  5. #define ASH_SYSTEM_TRAY_FAKE_DETAILED_VIEW_DELEGATE_H_
  6. #include "ash/ash_export.h"
  7. #include "ash/system/tray/detailed_view_delegate.h"
  8. namespace ash {
  9. // Fake of DetailedViewDelegate implementation.
  10. class ASH_EXPORT FakeDetailedViewDelegate : public DetailedViewDelegate {
  11. public:
  12. FakeDetailedViewDelegate();
  13. FakeDetailedViewDelegate(const FakeDetailedViewDelegate&) = delete;
  14. FakeDetailedViewDelegate& operator=(const FakeDetailedViewDelegate&) = delete;
  15. ~FakeDetailedViewDelegate() override;
  16. size_t close_bubble_call_count() const { return close_bubble_call_count_; }
  17. private:
  18. // DetailedViewDelegate:
  19. void CloseBubble() override;
  20. size_t close_bubble_call_count_ = 0;
  21. };
  22. } // namespace ash
  23. #endif // ASH_SYSTEM_TRAY_FAKE_DETAILED_VIEW_DELEGATE_H_