// Copyright Epic Games, Inc. All Rights Reserved. #include "NodeTestGraphBuilder.h" #include "HarmonixDsp/AudioBuffer.h" #include "HarmonixMetasound/Common.h" #include "Misc/AutomationTest.h" #if WITH_DEV_AUTOMATION_TESTS namespace HarmonixMetasoundTests::MidiStreamSelectNode { using GraphBuilder = Metasound::Test::FNodeTestGraphBuilder; using namespace Metasound; using namespace Metasound::Frontend; using namespace HarmonixMetasound; IMPLEMENT_SIMPLE_AUTOMATION_TEST( FMidiStreamSelectCreateNodeTest, "Harmonix.Metasound.Nodes.MidiStreamSelectNode.CreateNode", EAutomationTestFlags::EditorContext | EAutomationTestFlags::EngineFilter) bool FMidiStreamSelectCreateNodeTest::RunTest(const FString&) { // Build the graph. constexpr int32 NumSamplesPerBlock = 256; const TUniquePtr Generator = GraphBuilder::MakeSingleNodeGraph( { HarmonixMetasound::HarmonixNodeNamespace, "MidiStreamSelect", "" }, 0, 48000, NumSamplesPerBlock); UTEST_TRUE("Graph successfully built", Generator.IsValid()); return true; } } #endif