FileStateCacheTests.h 784 B

12345678910111213141516171819202122232425262728293031323334
  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 <AzTest/AzTest.h>
  10. #include <AssetManager/FileStateCache.h>
  11. #include <QTemporaryDir>
  12. namespace UnitTests
  13. {
  14. using namespace testing;
  15. using ::testing::NiceMock;
  16. class FileStateCacheTests : public ::testing::Test
  17. {
  18. public:
  19. void SetUp() override;
  20. void TearDown() override;
  21. void CheckForFile(QString path, bool shouldExist);
  22. protected:
  23. QTemporaryDir m_temporaryDir;
  24. QDir m_temporarySourceDir;
  25. AZStd::unique_ptr<AssetProcessor::FileStateBase> m_fileStateCache;
  26. };
  27. }