From 8b6fa65607f553c0b784ac7df82997626810e17b Mon Sep 17 00:00:00 2001 From: greerdv Date: Sat, 26 Jun 2021 17:51:55 +0100 Subject: [PATCH] tidy up and improve formatting --- .../EditorPolygonPrismShapeComponentTests.cpp | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/Gems/LmbrCentral/Code/Tests/EditorPolygonPrismShapeComponentTests.cpp b/Gems/LmbrCentral/Code/Tests/EditorPolygonPrismShapeComponentTests.cpp index e1bd240e13..56c6e4e7eb 100644 --- a/Gems/LmbrCentral/Code/Tests/EditorPolygonPrismShapeComponentTests.cpp +++ b/Gems/LmbrCentral/Code/Tests/EditorPolygonPrismShapeComponentTests.cpp @@ -4,12 +4,14 @@ * SPDX-License-Identifier: Apache-2.0 OR MIT * */ -#include "LmbrCentral_precompiled.h" + #include "LmbrCentralReflectionTest.h" +#include "LmbrCentral_precompiled.h" #include "Shape/EditorPolygonPrismShapeComponent.h" #include "Shape/EditorSphereShapeComponent.h" - #include +#include +#include #include #include #include @@ -17,10 +19,8 @@ #include #include #include -#include #include -#include -#include +#include namespace LmbrCentral { @@ -96,8 +96,6 @@ namespace LmbrCentral EXPECT_EQ(polygonPrism->m_vertexContainer.GetVertices(), sourceVertices); } - using EditorPolygonPrismShapeComponentManipulatorTestFixture = UnitTest::IndirectCallManipulatorViewportInteractionFixture; - class EditorPolygonPrismShapeComponentFixture : public UnitTest::ToolsApplicationFixture { public: @@ -113,12 +111,10 @@ namespace LmbrCentral void EditorPolygonPrismShapeComponentFixture::SetUpEditorFixtureImpl() { AZ::SerializeContext* serializeContext = nullptr; - AZ::ComponentApplicationBus::BroadcastResult( - serializeContext, &AZ::ComponentApplicationBus::Events::GetSerializeContext); + AZ::ComponentApplicationBus::BroadcastResult(serializeContext, &AZ::ComponentApplicationBus::Events::GetSerializeContext); // need to reflect EditorSphereShapeComponent in order for EditorBaseShapeComponent to be reflected - m_editorSphereShapeComponentDescriptor = - AZStd::unique_ptr(EditorSphereShapeComponent::CreateDescriptor()); + m_editorSphereShapeComponentDescriptor = AZStd::unique_ptr(EditorSphereShapeComponent::CreateDescriptor()); m_editorPolygonPrismShapeComponentDescriptor = AZStd::unique_ptr(EditorPolygonPrismShapeComponent::CreateDescriptor()); @@ -206,8 +202,7 @@ namespace LmbrCentral // now check the manipulator is still in the correct position relative to the vertex // by starting a drag from the new vertex world position - m_actionDispatcher - ->CameraState(m_cameraState) + m_actionDispatcher->CameraState(m_cameraState) ->MousePosition(screenEnd + offset) ->MouseLButtonDown() ->MousePosition(screenStart + offset)