RCControllerTest.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 "native/tests/AssetProcessorTest.h"
  10. #include <QCoreApplication>
  11. #include "native/assetprocessor.h"
  12. #include <AzFramework/Asset/AssetSystemTypes.h>
  13. #include <native/tests/UnitTestUtilities.h>
  14. class RCcontrollerTest
  15. : public AssetProcessor::AssetProcessorTest
  16. {
  17. public:
  18. RCcontrollerTest()
  19. : m_argc(0)
  20. , m_argv(0)
  21. {
  22. m_qApp = new QCoreApplication(m_argc, m_argv);
  23. qRegisterMetaType<AzFramework::AssetSystem::AssetStatus>("AzFramework::AssetSystem::AssetStatus");
  24. qRegisterMetaType<AssetProcessor::NetworkRequestID>("NetworkRequestID");
  25. }
  26. virtual ~RCcontrollerTest()
  27. {
  28. delete m_qApp;
  29. }
  30. private:
  31. int m_argc;
  32. char** m_argv;
  33. QCoreApplication* m_qApp;
  34. UnitTests::MockPathConversion m_mockPathConversion;
  35. };