Files
UnrealEngine/Engine/Source/Programs/AutoRTFMTests/Private/DependencyTests.cpp
2025-05-18 13:04:45 +08:00

53 lines
786 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "AutoRTFM.h"
// We can't use Catch2Includes.h here, because it #includes more Unreal headers.
// Fortunately, we don't even need to run these tests; if this code compiles and links,
// the test has passed.
namespace
{
void OnAbort_MacroWorksWithNoAdditionalIncludes()
{
AutoRTFM::Transact([&]
{
UE_AUTORTFM_ONABORT()
{
};
});
}
void OnAbort_FunctionWorksWithNoAdditionalIncludes()
{
AutoRTFM::Transact([&]
{
AutoRTFM::OnAbort([]
{
});
});
}
void OnCommit_MacroWorksWithNoAdditionalIncludes()
{
AutoRTFM::Commit([&]
{
UE_AUTORTFM_ONCOMMIT()
{
};
});
}
void OnCommit_FunctionWorksWithNoAdditionalIncludes()
{
AutoRTFM::Commit([&]
{
AutoRTFM::OnCommit([]
{
});
});
}
} // namespace