Removes NodeableOutNative.h from Gems/ScriptCanvas
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
#include <ScriptCanvas/Core/SubgraphInterfaceUtility.h>
|
||||
#include <ScriptCanvas/Core/Nodeable.h>
|
||||
#include <ScriptCanvas/Execution/Interpreted/ExecutionInterpretedAPI.h>
|
||||
#include <ScriptCanvas/Execution/NodeableOut/NodeableOutNative.h>
|
||||
#include <Source/Framework/ScriptCanvasTestFixture.h>
|
||||
#include <Source/Framework/ScriptCanvasTestNodes.h>
|
||||
#include <Source/Framework/ScriptCanvasTestUtilities.h>
|
||||
@@ -25,92 +24,6 @@ using namespace ScriptCanvasTests;
|
||||
using namespace TestNodes;
|
||||
using namespace ScriptCanvas::Execution;
|
||||
|
||||
// TEST_F(ScriptCanvasTestFixture, NativeNodeableStack)
|
||||
// {
|
||||
// TestNodeableObject nodeable;
|
||||
// nodeable.Initialize();
|
||||
//
|
||||
// bool wasTrueCalled = false;
|
||||
// bool wasFalseCalled = false;
|
||||
//
|
||||
// nodeable.SetExecutionOut
|
||||
// ( AZ_CRC("BranchTrue", 0xd49f121c)
|
||||
// , CreateOut
|
||||
// ([&wasTrueCalled](ExecutionState&, Data::BooleanType condition, const Data::StringType& message)
|
||||
// {
|
||||
// EXPECT_TRUE(condition);
|
||||
// EXPECT_EQ(message, AZStd::string("called the true version!"));
|
||||
// wasTrueCalled = true;
|
||||
// }
|
||||
// , StackAllocatorType{}));
|
||||
//
|
||||
// nodeable.SetExecutionOut
|
||||
// ( AZ_CRC("BranchFalse", 0xaceca8bc)
|
||||
// , CreateOut
|
||||
// ([&wasFalseCalled](ExecutionState&, Data::BooleanType condition, const Data::StringType& message, const Data::Vector3Type& vector)
|
||||
// {
|
||||
// EXPECT_FALSE(condition);
|
||||
// EXPECT_EQ(message, AZStd::string("called the false version!"));
|
||||
// EXPECT_EQ(vector, AZ::Vector3(1, 2, 3));
|
||||
// wasFalseCalled = true;
|
||||
// }
|
||||
// , StackAllocatorType{}));
|
||||
//
|
||||
// nodeable.Branch(true);
|
||||
// nodeable.Branch(false);
|
||||
//
|
||||
// EXPECT_TRUE(wasTrueCalled);
|
||||
// EXPECT_TRUE(wasFalseCalled);
|
||||
// }
|
||||
|
||||
//
|
||||
// TEST_F(ScriptCanvasTestFixture, NativeNodeableHeap)
|
||||
// {
|
||||
// TestNodeableObject nodeable;
|
||||
// nodeable.Initialize();
|
||||
//
|
||||
// AZStd::string routedArg("XYZ");
|
||||
// AZStd::array<int, 2048> bigArray;
|
||||
// std::fill(bigArray.begin(), bigArray.end(), 0);
|
||||
//
|
||||
// bigArray[0] = 7;
|
||||
// bigArray[2047] = 7;
|
||||
//
|
||||
// EXPECT_EQ(bigArray[0], 7);
|
||||
// EXPECT_EQ(bigArray[2047], 7);
|
||||
//
|
||||
// bool isHeapCalled = false;
|
||||
//
|
||||
// nodeable.SetExecutionOut
|
||||
// ( AZ_CRC("BranchTrue", 0xd49f121c)
|
||||
// , CreateOut
|
||||
// ([routedArg, &isHeapCalled, bigArray](ExecutionState&, Data::BooleanType condition, const Data::StringType& message) mutable
|
||||
// {
|
||||
// EXPECT_EQ(message, AZStd::string("called the true version!"));
|
||||
// routedArg = message;
|
||||
// isHeapCalled = true;
|
||||
// EXPECT_EQ(bigArray[0], 7);
|
||||
// EXPECT_EQ(bigArray[2047], 7);
|
||||
// bigArray[0] = 9;
|
||||
// bigArray[2047] = 9;
|
||||
// EXPECT_EQ(bigArray[0], 9);
|
||||
// EXPECT_EQ(bigArray[2047], 9);
|
||||
// }
|
||||
// , HeapAllocatorType{}));
|
||||
//
|
||||
//
|
||||
// bigArray[0] = 8;
|
||||
// bigArray[2047] = 8;
|
||||
// EXPECT_EQ(bigArray[0], 8);
|
||||
// EXPECT_EQ(bigArray[2047], 8);
|
||||
//
|
||||
// nodeable.Branch(true);
|
||||
// EXPECT_TRUE(isHeapCalled);
|
||||
//
|
||||
// // just making sure no crash occurs on unconnected outs
|
||||
// nodeable.Branch(false);
|
||||
// }
|
||||
|
||||
class Grandparent
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user