/Engine/Source/Runtime/Core/Public/Misc/AutomationTest.h
Adds a regex pattern to an internal list that this test will expect to encounter in logs (of the specified verbosity) during its execution. If an expected pattern is not encountered, it will cause this test to fail.
void AddExpectedMessage ( [FString](API\Runtime\Core\Containers\FString) ExpectedPatternString, [ELogVerbosity::Type](API\Runtime\Core\Logging\ELogVerbosity__Type) ExpectedVerbosity, [EAutomationExpectedMessageFlags::MatchType](API\Runtime\Core\Misc\EAutomationExpectedMessageFlags_-) CompareType, int32 Occurrences )