diff --git a/test/TestUtilities/GraphicsUtil.hpp b/test/TestUtilities/GraphicsUtil.hpp index d631e5436..44b3c3ba2 100644 --- a/test/TestUtilities/GraphicsUtil.hpp +++ b/test/TestUtilities/GraphicsUtil.hpp @@ -8,6 +8,8 @@ #include "WindowUtil.hpp" +#include + namespace sf { struct BlendMode; @@ -17,6 +19,13 @@ namespace sf std::ostream& operator <<(std::ostream& os, const BlendMode& blendMode); std::ostream& operator <<(std::ostream& os, const Color& color); std::ostream& operator <<(std::ostream& os, const Transform& transform); + + template + std::ostream& operator <<(std::ostream& os, const sf::Rect& rect) + { + os << "(left=" << rect.left << ", top=" << rect.top << ", width=" << rect.width << ", height=" << rect.height << ")"; + return os; + } } #endif // SFML_TESTUTILITIES_GRAPHICS_HPP diff --git a/test/TestUtilities/WindowUtil.hpp b/test/TestUtilities/WindowUtil.hpp index ae5630afa..57777edee 100644 --- a/test/TestUtilities/WindowUtil.hpp +++ b/test/TestUtilities/WindowUtil.hpp @@ -8,21 +8,12 @@ #include "SystemUtil.hpp" -#include - // String conversions for doctest framework namespace sf { class VideoMode; std::ostream& operator <<(std::ostream& os, const sf::VideoMode& videoMode); - - template - std::ostream& operator <<(std::ostream& os, const sf::Rect& rect) - { - os << "(left=" << rect.left << ", top=" << rect.top << ", width=" << rect.width << ", height=" << rect.height << ")"; - return os; - } } #endif // SFML_TESTUTILITIES_WINDOW_HPP