/* * Copyright (c) Contributors to the Open 3D Engine Project * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace ScriptCanvasDeveloper { DefineStateId(CreateGraphTest_CreateGraphHotKeyState); /** EditorautomationTest that will test out the ways of creating a runtime graph */ class CreateGraphTest : public EditorAutomationTest { class CreateGraphHotKeyState : public StaticIdAutomationState , public GraphCanvas::AssetEditorNotificationBus::Handler { public: CreateGraphHotKeyState(); ~CreateGraphHotKeyState() override = default; // AssetEditorNotificationBus void OnActiveGraphChanged(const AZ::EntityId& graphCanvasId) override; //// protected: void OnSetupStateActions(EditorAutomationActionRunner& actionRunner); void OnStateActionsComplete(); private: GraphCanvas::GraphId m_hotKeyGraphId; KeyPressAction m_pressControl; KeyReleaseAction m_releaseControl; TypeCharAction m_typeN; ProcessUserEventsAction m_shortProcessEvents; ProcessUserEventsAction m_longProcessEvents; }; public: CreateGraphTest(); ~CreateGraphTest() override = default; void OnTestStarting() override; protected: int EvaluateTransition(int stateId) override; private: int m_creationState = EditorAutomationState::EXIT_STATE_ID; }; /** EditorautomationTest that will test out the ways of creating a function graph. */ class CreateFunctionTest : public EditorAutomationTest { public: CreateFunctionTest(); ~CreateFunctionTest() override = default; }; }