From 7e22cbf28f9e529d1e90d3c14c2f726f1db6313a Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Tue, 24 Sep 2024 08:21:48 +0200 Subject: [PATCH] Add missing headers to tests Fixes no-pch build. Signed-off-by: Ralph Sennhauser --- source/graphics/tests/test_Color.h | 3 ++- source/graphics/tests/test_MapGenerator.h | 1 + source/graphics/tests/test_Model.h | 1 + source/graphics/tests/test_TextureConverter.h | 3 ++- source/network/tests/test_StunClient.h | 1 + .../third_party/ogre3d_preprocessor/tests/test_Preprocessor.h | 1 + 6 files changed, 8 insertions(+), 2 deletions(-) diff --git a/source/graphics/tests/test_Color.h b/source/graphics/tests/test_Color.h index d41e9c6f9f..cbdc63b553 100644 --- a/source/graphics/tests/test_Color.h +++ b/source/graphics/tests/test_Color.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2022 Wildfire Games. +/* Copyright (C) 2024 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -18,6 +18,7 @@ #include "lib/self_test.h" #include "graphics/Color.h" +#include "ps/CLogger.h" #include diff --git a/source/graphics/tests/test_MapGenerator.h b/source/graphics/tests/test_MapGenerator.h index f8bbc3e475..8e573de366 100644 --- a/source/graphics/tests/test_MapGenerator.h +++ b/source/graphics/tests/test_MapGenerator.h @@ -16,6 +16,7 @@ */ #include "graphics/MapGenerator.h" +#include "ps/CLogger.h" #include "ps/Filesystem.h" #include "simulation2/system/ComponentTest.h" diff --git a/source/graphics/tests/test_Model.h b/source/graphics/tests/test_Model.h index a92a678c9a..9afed15b73 100644 --- a/source/graphics/tests/test_Model.h +++ b/source/graphics/tests/test_Model.h @@ -30,6 +30,7 @@ #include "graphics/Unit.h" #include "graphics/UnitManager.h" #include "lib/file/io/io.h" +#include "ps/CLogger.h" #include "ps/ConfigDB.h" #include "ps/CStrInternStatic.h" #include "ps/Filesystem.h" diff --git a/source/graphics/tests/test_TextureConverter.h b/source/graphics/tests/test_TextureConverter.h index f23862699f..f3d5506f11 100644 --- a/source/graphics/tests/test_TextureConverter.h +++ b/source/graphics/tests/test_TextureConverter.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2023 Wildfire Games. +/* Copyright (C) 2024 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -22,6 +22,7 @@ #include "lib/external_libraries/libsdl.h" #include "lib/file/vfs/vfs.h" #include "lib/tex/tex.h" +#include "ps/CLogger.h" #include "ps/XML/Xeromyces.h" class TestTextureConverter : public CxxTest::TestSuite diff --git a/source/network/tests/test_StunClient.h b/source/network/tests/test_StunClient.h index 2df83c3e9e..c84c5e2911 100644 --- a/source/network/tests/test_StunClient.h +++ b/source/network/tests/test_StunClient.h @@ -20,6 +20,7 @@ #include "network/StunClient.h" #include "lib/external_libraries/enet.h" +#include "ps/CLogger.h" #include "ps/ConfigDB.h" #include "ps/CStr.h" diff --git a/source/third_party/ogre3d_preprocessor/tests/test_Preprocessor.h b/source/third_party/ogre3d_preprocessor/tests/test_Preprocessor.h index 8fb4a2f1d7..878f500a57 100644 --- a/source/third_party/ogre3d_preprocessor/tests/test_Preprocessor.h +++ b/source/third_party/ogre3d_preprocessor/tests/test_Preprocessor.h @@ -19,6 +19,7 @@ #include "graphics/PreprocessorWrapper.h" #include "lib/timer.h" +#include "ps/CLogger.h" #include "ps/CStr.h" #include "third_party/ogre3d_preprocessor/OgreGLSLPreprocessor.h"