From 20af728fdf07478b5a146370b59f902a70b85a68 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 8 Mar 2019 10:53:07 +0100 Subject: Clean up includes and forward declarations --- tests/TestClient.hpp | 4 ++-- tests/ingen_bench.cpp | 16 ++++++++-------- tests/ingen_test.cpp | 32 ++++++++++++++++---------------- tests/test_utils.hpp | 2 -- tests/tst_FilePath.cpp | 9 +++++++-- 5 files changed, 33 insertions(+), 30 deletions(-) (limited to 'tests') diff --git a/tests/TestClient.hpp b/tests/TestClient.hpp index b234d7c2..e76e4aa5 100644 --- a/tests/TestClient.hpp +++ b/tests/TestClient.hpp @@ -17,11 +17,11 @@ #ifndef INGEN_TESTCLIENT_HPP #define INGEN_TESTCLIENT_HPP -#include - #include "ingen/Interface.hpp" #include "ingen/Log.hpp" +#include + using namespace ingen; class TestClient : public ingen::Interface diff --git a/tests/ingen_bench.cpp b/tests/ingen_bench.cpp index 1a0d84ca..99abee97 100644 --- a/tests/ingen_bench.cpp +++ b/tests/ingen_bench.cpp @@ -14,23 +14,23 @@ along with Ingen. If not, see . */ -#include -#include -#include -#include - +#include "ingen/Atom.hpp" #include "ingen/Clock.hpp" #include "ingen/Configuration.hpp" #include "ingen/EngineBase.hpp" #include "ingen/Forge.hpp" -#include "ingen/Interface.hpp" #include "ingen/Parser.hpp" #include "ingen/World.hpp" #include "ingen/runtime_paths.hpp" #include "ingen/types.hpp" -#include "TestClient.hpp" -#include "ingen_config.h" +#include +#include +#include +#include +#include +#include +#include using namespace std; using namespace ingen; diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp index cd86985f..fc114fb1 100644 --- a/tests/ingen_test.cpp +++ b/tests/ingen_test.cpp @@ -14,39 +14,39 @@ along with Ingen. If not, see . */ -#include - -#include -#include -#include - -#include - -#include "raul/Path.hpp" - -#include "serd/serd.h" -#include "sord/sordmm.hpp" -#include "sratom/sratom.h" - +#include "TestClient.hpp" #include "ingen_config.h" +#include "ingen/Atom.hpp" +#include "ingen/AtomForgeSink.hpp" #include "ingen/AtomReader.hpp" #include "ingen/AtomWriter.hpp" #include "ingen/Configuration.hpp" -#include "ingen/Configuration.hpp" #include "ingen/EngineBase.hpp" +#include "ingen/FilePath.hpp" #include "ingen/Interface.hpp" #include "ingen/Parser.hpp" #include "ingen/Properties.hpp" #include "ingen/Serialiser.hpp" #include "ingen/Store.hpp" +#include "ingen/URI.hpp" #include "ingen/URIMap.hpp" #include "ingen/World.hpp" #include "ingen/filesystem.hpp" +#include "ingen/fmt.hpp" #include "ingen/runtime_paths.hpp" #include "ingen/types.hpp" +#include "raul/Path.hpp" +#include "serd/serd.h" +#include "sord/sordmm.hpp" +#include "sratom/sratom.h" -#include "TestClient.hpp" +#include +#include +#include +#include +#include +#include using namespace std; using namespace ingen; diff --git a/tests/test_utils.hpp b/tests/test_utils.hpp index c8271325..48e3a588 100644 --- a/tests/test_utils.hpp +++ b/tests/test_utils.hpp @@ -18,8 +18,6 @@ #include -using ingen::fmt; - #define EXPECT_TRUE(value) \ if (!(value)) { \ std::cerr << fmt("error: %1%:%2%: !%3%\n", \ diff --git a/tests/tst_FilePath.cpp b/tests/tst_FilePath.cpp index ec0fe593..768371fe 100644 --- a/tests/tst_FilePath.cpp +++ b/tests/tst_FilePath.cpp @@ -14,12 +14,17 @@ along with Ingen. If not, see . */ -#include +#include "test_utils.hpp" #include "ingen/FilePath.hpp" -#include "test_utils.hpp" +#include "ingen/fmt.hpp" + +#include + +#include using ingen::FilePath; +using ingen::fmt; int main(int, char**) -- cgit v1.2.1