MockAssetProcessorManager.h 819 B

1234567891011121314151617181920212223242526272829303132
  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 <native/AssetManager/assetProcessorManager.h>
  11. #include <tests/assetmanager/TestEventSignal.h>
  12. namespace UnitTests
  13. {
  14. struct MockAssetProcessorManager : ::AssetProcessor::AssetProcessorManager
  15. {
  16. Q_OBJECT
  17. using AssetProcessorManager::AssetProcessorManager;
  18. public Q_SLOTS:
  19. void AssessAddedFile(QString filePath) override;
  20. void AssessModifiedFile(QString filePath) override;
  21. void AssessDeletedFile(QString filePath) override;
  22. public:
  23. TestEventPair m_events[TestEvents::NumEvents];
  24. };
  25. }