PrefabInspectorOverrideTestFixture.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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 <AzCore/std/smart_ptr/unique_ptr.h>
  10. #include <AzToolsFramework/Prefab/Overrides/PrefabOverridePublicInterface.h>
  11. #include <AzToolsFramework/Prefab/PrefabFocusPublicInterface.h>
  12. #include <AzToolsFramework/UI/PropertyEditor/EntityPropertyEditor.hxx>
  13. #include <Prefab/Overrides/PrefabOverrideTestFixture.h>
  14. namespace UnitTest
  15. {
  16. using namespace AzToolsFramework::Prefab;
  17. class PrefabInspectorOverrideTestFixture : public PrefabOverrideTestFixture
  18. {
  19. protected:
  20. void SetUpEditorFixtureImpl() override;
  21. void TearDownEditorFixtureImpl() override;
  22. void GenerateComponentAdapterDoms(AZ::EntityId);
  23. void ValidateComponentEditorDomContents(
  24. const AzToolsFramework::ComponentEditor::VisitComponentAdapterContentsCallback& callback);
  25. AZStd::unique_ptr<AzToolsFramework::EntityPropertyEditor> m_testEntityPropertyEditor;
  26. bool m_ed_enableDPEInspector = false;
  27. bool m_ed_enableInspectorOverrideManagement = false;
  28. };
  29. } // namespace UnitTest