3
0

ArchiveEditorTest.cpp 953 B

12345678910111213141516171819202122232425262728
  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. #include <AzTest/AzTest.h>
  9. #include <AzTest/GemTestEnvironment.h>
  10. class ArchiveEditorTestEnvironment
  11. : public AZ::Test::GemTestEnvironment
  12. {
  13. public:
  14. void AddGemsAndComponents() override
  15. {
  16. // Load the (lib)Compression.Editor.(dll|so|dylib) file
  17. // in the Archive Test code
  18. // The AzTestRunner explicitly loads this module: (lib)Archive.Editor.Tests.(dll|so|dylib)
  19. // via its first command line argument
  20. AddDynamicModulePaths({ "Compression.Editor" });
  21. // Set both this Gem "Archive" and the Compression Gem has active
  22. AddActiveGems(AZStd::to_array<AZStd::string_view>({ "Archive", "Compression" }));
  23. }
  24. };
  25. AZ_UNIT_TEST_HOOK(new ArchiveEditorTestEnvironment);