mock_projector_ui_controller.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2021 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_PROJECTOR_TEST_MOCK_PROJECTOR_UI_CONTROLLER_H_
  5. #define ASH_PROJECTOR_TEST_MOCK_PROJECTOR_UI_CONTROLLER_H_
  6. #include "ash/ash_export.h"
  7. #include "ash/projector/projector_ui_controller.h"
  8. #include "ash/public/cpp/projector/annotator_tool.h"
  9. #include "testing/gmock/include/gmock/gmock.h"
  10. namespace ash {
  11. class ProjectorControllerImpl;
  12. // A mock implementation of ProjectorUiController for use in tests.
  13. class ASH_EXPORT MockProjectorUiController : public ProjectorUiController {
  14. public:
  15. explicit MockProjectorUiController(
  16. ProjectorControllerImpl* projector_controller);
  17. MockProjectorUiController(const MockProjectorUiController&) = delete;
  18. MockProjectorUiController& operator=(const MockProjectorUiController&) =
  19. delete;
  20. ~MockProjectorUiController() override;
  21. // ProjectorUiController:
  22. MOCK_METHOD1(ShowAnnotationTray, void(aura::Window*));
  23. MOCK_METHOD0(HideAnnotationTray, void());
  24. MOCK_METHOD0(EnableAnnotatorTool, void());
  25. MOCK_METHOD1(SetAnnotatorTool, void(const AnnotatorTool&));
  26. };
  27. } // namespace ash
  28. #endif // ASH_PROJECTOR_TEST_MOCK_PROJECTOR_UI_CONTROLLER_H_