-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "Image/IPak/IPakCreator.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "Image/ImageIPakPostProcessor.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "Image/ImageIwdPostProcessor.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "Iwd/IwdCreator.h" |
42 changes: 42 additions & 0 deletions
42
test/ObjCompilingTests/KeyValuePairs/KeyValuePairsCreatorTest.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#include "KeyValuePairs/KeyValuePairsCreator.h" | ||
|
||
#include <catch2/catch_test_macros.hpp> | ||
#include <catch2/generators/catch_generators.hpp> | ||
#include <catch2/matchers/catch_matchers_floating_point.hpp> | ||
#include <memory> | ||
|
||
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<KeyValuePairsCreator>()) | ||
{ | ||
} | ||
|
||
std::unique_ptr<IAssetCreator> CreateSut() | ||
{ | ||
return std::make_unique<KeyValuePairsCreator>(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 |