AssetRequestHandlerUnitTests.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. #if !defined(Q_MOC_RUN)
  10. #include <native/unittests/AssetProcessorUnitTests.h>
  11. #endif
  12. namespace AssetProcessor
  13. {
  14. class MockAssetRequestHandler;
  15. class MockConnectionHandler;
  16. class AssetRequestHandlerUnitTests
  17. : public QObject
  18. , public UnitTest::AssetProcessorUnitTestBase
  19. {
  20. Q_OBJECT
  21. public:
  22. ~AssetRequestHandlerUnitTests();
  23. protected:
  24. void SetUp() override;
  25. void TearDown() override;
  26. AZStd::unique_ptr<MockAssetRequestHandler> m_requestHandler;
  27. AZStd::unique_ptr<AssetProcessor::MockConnectionHandler> m_connection;
  28. bool m_requestedCompileGroup = false;
  29. bool m_requestedAssetExists = false;
  30. QString m_platformSet;
  31. NetworkRequestID m_requestIdSet;
  32. QString m_searchTermSet;
  33. };
  34. }