DocumentPropertyEditorFixture.cpp 962 B

1234567891011121314151617181920212223242526272829303132
  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 <Tests/DocumentPropertyEditor/DocumentPropertyEditorFixture.h>
  9. #include <AzCore/Name/NameDictionary.h>
  10. namespace AZ::DocumentPropertyEditor::Tests
  11. {
  12. void DocumentPropertyEditorTestFixture::SetUp()
  13. {
  14. UnitTest::LeakDetectionFixture::SetUp();
  15. NameDictionary::Create();
  16. DocumentAdapter::SetDebugModeEnabled(true);
  17. m_system = AZStd::make_unique<PropertyEditorSystem>();
  18. m_adapter = AZStd::make_unique<BasicAdapter>();
  19. }
  20. void DocumentPropertyEditorTestFixture::TearDown()
  21. {
  22. m_adapter.reset();
  23. m_system.reset();
  24. DocumentAdapter::SetDebugModeEnabled(false);
  25. NameDictionary::Destroy();
  26. UnitTest::LeakDetectionFixture::TearDown();
  27. }
  28. }