MockFileProcessor.h 712 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <QObject>
  10. #include <FileProcessor/FileProcessor.h>
  11. #include <tests/assetmanager/TestEventSignal.h>
  12. namespace UnitTests
  13. {
  14. struct MockFileProcessor : ::AssetProcessor::FileProcessor
  15. {
  16. Q_OBJECT
  17. using FileProcessor::FileProcessor;
  18. public Q_SLOTS:
  19. void AssessAddedFile(QString fileName) override;
  20. void AssessDeletedFile(QString fileName) override;
  21. public:
  22. TestEventPair m_events[TestEvents::NumEvents];
  23. };
  24. }