TestsMain.cpp 733 B

12345678910111213141516171819202122232425262728293031
  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 <SceneAPI/SceneCore/SceneCoreStandaloneAllocator.h>
  10. class SceneCoreTestEnvironment
  11. : public AZ::Test::ITestEnvironment
  12. {
  13. public:
  14. virtual ~SceneCoreTestEnvironment() {}
  15. protected:
  16. void SetupEnvironment() override
  17. {
  18. AZ::SceneAPI::SceneCoreStandaloneAllocator::Initialize();
  19. }
  20. void TeardownEnvironment() override
  21. {
  22. AZ::SceneAPI::SceneCoreStandaloneAllocator::TearDown();
  23. }
  24. };
  25. AZ_UNIT_TEST_HOOK(new SceneCoreTestEnvironment);