From d6744d73957bb23a57a5d2c1f207eb239d1a6d0d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 16 Sep 2018 21:09:11 +0200 Subject: Clean up includes --- test/array_test.cpp | 4 ++-- test/maid_test.cpp | 7 +++++-- test/path_test.cpp | 6 ++++-- test/ringbuffer_test.cpp | 8 ++++---- test/sem_test.cpp | 6 ++---- test/socket_test.cpp | 17 +++++++++++------ test/symbol_test.cpp | 6 +++--- test/thread_test.cpp | 4 ++-- test/time_test.cpp | 2 ++ 9 files changed, 35 insertions(+), 25 deletions(-) (limited to 'test') diff --git a/test/array_test.cpp b/test/array_test.cpp index ea9eb13..a1a4132 100644 --- a/test/array_test.cpp +++ b/test/array_test.cpp @@ -14,10 +14,10 @@ along with Raul. If not, see . */ -#include - #include "raul/Array.hpp" +#include + int main(int argc, char** argv) { diff --git a/test/maid_test.cpp b/test/maid_test.cpp index e21ba04..a692c1d 100644 --- a/test/maid_test.cpp +++ b/test/maid_test.cpp @@ -16,13 +16,16 @@ #undef NDEBUG +#include "raul/Maid.hpp" + +#include #include +#include #include +#include #include #include -#include "raul/Maid.hpp" - using Raul::Maid; static const size_t n_threads = 8; diff --git a/test/path_test.cpp b/test/path_test.cpp index 01f55c0..3b7b61b 100644 --- a/test/path_test.cpp +++ b/test/path_test.cpp @@ -14,10 +14,12 @@ along with Raul. If not, see . */ +#include "raul/Path.hpp" +#include "raul/Symbol.hpp" + #include #include - -#include "raul/Path.hpp" +#include using namespace std; using namespace Raul; diff --git a/test/ringbuffer_test.cpp b/test/ringbuffer_test.cpp index 7fc4042..1c488be 100644 --- a/test/ringbuffer_test.cpp +++ b/test/ringbuffer_test.cpp @@ -14,16 +14,16 @@ along with Raul. If not, see . */ +#include "raul/RingBuffer.hpp" + #include +#include #include -#include #include -#include +#include #include #include -#include "raul/RingBuffer.hpp" - using namespace std; using namespace Raul; diff --git a/test/sem_test.cpp b/test/sem_test.cpp index f44fc5e..8daf82b 100644 --- a/test/sem_test.cpp +++ b/test/sem_test.cpp @@ -16,14 +16,12 @@ #undef NDEBUG +#include "raul/Semaphore.hpp" + #include #include -#include -#include #include -#include "raul/Semaphore.hpp" - static void wait_for_sem(Raul::Semaphore* sem) { diff --git a/test/socket_test.cpp b/test/socket_test.cpp index 8dd4aff..2472c21 100644 --- a/test/socket_test.cpp +++ b/test/socket_test.cpp @@ -14,19 +14,24 @@ along with Raul. If not, see . */ -#include -#include +#include "raul/Socket.hpp" + +#include #include #include -#include "raul/Socket.hpp" - -using namespace std; -using namespace Raul; +#include +#include +#include +#include +#include +#include int main(int argc, char** argv) { + using Socket = Raul::Socket; + std::string unix_uri("unix:///tmp/raul_test_sock"); std::string tcp_uri("tcp://127.0.0.1:12345"); diff --git a/test/symbol_test.cpp b/test/symbol_test.cpp index 5164998..edc8879 100644 --- a/test/symbol_test.cpp +++ b/test/symbol_test.cpp @@ -14,11 +14,11 @@ along with Raul. If not, see . */ -#include +#include "raul/Symbol.hpp" + #include #include - -#include "raul/Path.hpp" +#include using namespace std; using namespace Raul; diff --git a/test/thread_test.cpp b/test/thread_test.cpp index 9012b4c..78c0ad2 100644 --- a/test/thread_test.cpp +++ b/test/thread_test.cpp @@ -14,12 +14,12 @@ along with Raul. If not, see . */ +#include "raul/Semaphore.hpp" + #include #include #include -#include "raul/Semaphore.hpp" - using namespace std; using namespace Raul; diff --git a/test/time_test.cpp b/test/time_test.cpp index 69416cd..c6f3d77 100644 --- a/test/time_test.cpp +++ b/test/time_test.cpp @@ -16,6 +16,8 @@ #include "raul/TimeStamp.hpp" #include "raul/TimeSlice.hpp" + +#include #include using namespace std; -- cgit v1.2.1