MCRO
C++23 utilities for Unreal Engine.
Loading...
Searching...
No Matches
TestCompatibility.h
Go to the documentation of this file.
1/** @noop License Comment
2 * @file
3 * @copyright
4 * This Source Code is subject to the terms of the Mozilla Public License, v2.0.
5 * If a copy of the MPL was not distributed with this file You can obtain one at
6 * https://mozilla.org/MPL/2.0/
7 *
8 * @author David Mórász
9 * @date 2025
10*/
11
12#pragma once
13
14/**
15 * @file
16 * This header is there to ensure AutomationTest compatibility between different engine versions
17 */
18
19#include "CoreMinimal.h"
20#include "Misc/EngineVersionComparison.h"
21
22#if UE_VERSION_OLDER_THAN(5,5,0)
23
24/**
25 * @brief
26 * TestEqualSensitive is introduced in Unreal 5.5, until then we simply replace it with TestEqual
27 * which should do the same thing.
28 */
29#define TestEqualSensitive(...) TestEqual(__VA_ARGS__)
30
31/**
32 * @brief
33 * EAutomationTestFlags has been refactored in newer engine versions. Emulating refactored values here:
34 */
35constexpr EAutomationTestFlags::Type EAutomationTestFlags_ApplicationContextMask = EAutomationTestFlags::ApplicationContextMask;
36#endif