From 482bac6bafc8c1166ed82c8a59e13628ecabb1cd Mon Sep 17 00:00:00 2001 From: Jan Date: Sat, 4 Jan 2025 19:02:44 +0100 Subject: [PATCH] WIP --- .../Image/IPak/IPakCreatorTest.cpp | 1 + .../Image/ImageIPakPostProcessorTest.cpp | 1 + .../Image/ImageIwdPostProcessorTest.cpp | 1 + test/ObjCompilingTests/Iwd/IwdCreatorTest.cpp | 1 + .../KeyValuePairsCreatorTest.cpp | 42 +++++++++++++++++++ 5 files changed, 46 insertions(+) create mode 100644 test/ObjCompilingTests/Image/IPak/IPakCreatorTest.cpp create mode 100644 test/ObjCompilingTests/Image/ImageIPakPostProcessorTest.cpp create mode 100644 test/ObjCompilingTests/Image/ImageIwdPostProcessorTest.cpp create mode 100644 test/ObjCompilingTests/Iwd/IwdCreatorTest.cpp create mode 100644 test/ObjCompilingTests/KeyValuePairs/KeyValuePairsCreatorTest.cpp diff --git a/test/ObjCompilingTests/Image/IPak/IPakCreatorTest.cpp b/test/ObjCompilingTests/Image/IPak/IPakCreatorTest.cpp new file mode 100644 index 00000000..23aea8eb --- /dev/null +++ b/test/ObjCompilingTests/Image/IPak/IPakCreatorTest.cpp @@ -0,0 +1 @@ +#include "Image/IPak/IPakCreator.h" diff --git a/test/ObjCompilingTests/Image/ImageIPakPostProcessorTest.cpp b/test/ObjCompilingTests/Image/ImageIPakPostProcessorTest.cpp new file mode 100644 index 00000000..d3f51de2 --- /dev/null +++ b/test/ObjCompilingTests/Image/ImageIPakPostProcessorTest.cpp @@ -0,0 +1 @@ +#include "Image/ImageIPakPostProcessor.h" diff --git a/test/ObjCompilingTests/Image/ImageIwdPostProcessorTest.cpp b/test/ObjCompilingTests/Image/ImageIwdPostProcessorTest.cpp new file mode 100644 index 00000000..4e2eccfb --- /dev/null +++ b/test/ObjCompilingTests/Image/ImageIwdPostProcessorTest.cpp @@ -0,0 +1 @@ +#include "Image/ImageIwdPostProcessor.h" diff --git a/test/ObjCompilingTests/Iwd/IwdCreatorTest.cpp b/test/ObjCompilingTests/Iwd/IwdCreatorTest.cpp new file mode 100644 index 00000000..20e07608 --- /dev/null +++ b/test/ObjCompilingTests/Iwd/IwdCreatorTest.cpp @@ -0,0 +1 @@ +#include "Iwd/IwdCreator.h" diff --git a/test/ObjCompilingTests/KeyValuePairs/KeyValuePairsCreatorTest.cpp b/test/ObjCompilingTests/KeyValuePairs/KeyValuePairsCreatorTest.cpp new file mode 100644 index 00000000..9667c3a5 --- /dev/null +++ b/test/ObjCompilingTests/KeyValuePairs/KeyValuePairsCreatorTest.cpp @@ -0,0 +1,42 @@ +#include "KeyValuePairs/KeyValuePairsCreator.h" + +#include +#include +#include +#include + +using namespace std::string_literals; + +namespace +{ + class TestContext + { + public: + TestContext() + : m_memory(), + m_zone("test", 0, IGame::GetGameById(GameId::T6)), + m_zone_definition(), + m_zone_states(m_zone), + m_creators(m_zone), + m_ignored_assets(), + m_context(m_zone, &m_creators, &m_ignored_assets), + m_kvp_creator(m_zone_states.GetZoneAssetCreationState()) + { + } + + std::unique_ptr CreateSut() + { + return std::make_unique(m_memory, m_zone, m_zone_definition, m_zone_states); + } + + TestMemoryManager m_memory; + Zone m_zone; + ZoneDefinition m_zone_definition; + ZoneAssetCreationStateContainer m_zone_states; + AssetCreatorCollection m_creators; + IgnoredAssetLookup m_ignored_assets; + AssetCreationContext m_context; + + KeyValuePairsCreator& m_kvp_creator; + }; +} // namespace