mock_projector_metadata_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_METADATA_CONTROLLER_H_
  5. #define ASH_PROJECTOR_TEST_MOCK_PROJECTOR_METADATA_CONTROLLER_H_
  6. #include "ash/projector/projector_metadata_controller.h"
  7. #include "base/files/file_path.h"
  8. #include "media/mojo/mojom/speech_recognition.mojom.h"
  9. #include "testing/gmock/include/gmock/gmock.h"
  10. namespace ash {
  11. // A mock implementation of ProjectorMetadataController for use in tests.
  12. class ASH_EXPORT MockProjectorMetadataController
  13. : public ProjectorMetadataController {
  14. public:
  15. MockProjectorMetadataController();
  16. MockProjectorMetadataController(const MockProjectorMetadataController&) =
  17. delete;
  18. MockProjectorMetadataController& operator=(
  19. const MockProjectorMetadataController&) = delete;
  20. ~MockProjectorMetadataController() override;
  21. // ProjectorMetadataController:
  22. MOCK_METHOD0(OnRecordingStarted, void());
  23. MOCK_METHOD1(RecordTranscription,
  24. void(const media::SpeechRecognitionResult& speech_result));
  25. MOCK_METHOD0(RecordKeyIdea, void());
  26. MOCK_METHOD1(SaveMetadata, void(const base::FilePath& video_file_path));
  27. };
  28. } // namespace ash
  29. #endif // ASH_PROJECTOR_TEST_MOCK_PROJECTOR_METADATA_CONTROLLER_H_