Skip to content

Commit

Permalink
test: Move boost/stdlib includes last
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Apr 17, 2020
1 parent fa488f1 commit fa4632c
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 15 deletions.
4 changes: 3 additions & 1 deletion src/bench/checkqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include <bench/bench.h>
#include <boost/thread/thread.hpp>
#include <checkqueue.h>
#include <prevector.h>
#include <random.h>
#include <util/system.h>

#include <boost/thread/thread.hpp>

#include <vector>


Expand Down
7 changes: 4 additions & 3 deletions src/test/addrman_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <addrman.h>
#include <boost/test/unit_test.hpp>
#include <string>
#include <test/data/asmap.raw.h>
#include <test/util/setup_common.h>
#include <util/asmap.h>
#include <util/string.h>

#include <hash.h>
#include <netbase.h>
#include <random.h>

#include <boost/test/unit_test.hpp>

#include <string>

class CAddrManTest : public CAddrMan
{
private:
Expand Down
6 changes: 4 additions & 2 deletions src/test/arith_uint256_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include <arith_uint256.h>
#include <test/util/setup_common.h>
#include <uint256.h>

#include <boost/test/unit_test.hpp>

#include <cmath>
#include <iomanip>
#include <limits>
#include <sstream>
#include <stdint.h>
#include <string>
#include <test/util/setup_common.h>
#include <uint256.h>

BOOST_FIXTURE_TEST_SUITE(arith_uint256_tests, BasicTestingSetup)

Expand Down
10 changes: 5 additions & 5 deletions src/test/checkqueue_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include <checkqueue.h>
#include <test/util/setup_common.h>
#include <util/memory.h>
#include <util/system.h>
#include <util/time.h>

#include <atomic>
#include <boost/test/unit_test.hpp>
#include <boost/thread.hpp>
#include <checkqueue.h>

#include <atomic>
#include <condition_variable>
#include <mutex>
#include <test/util/setup_common.h>
#include <thread>
#include <vector>

#include <unordered_set>
#include <utility>
#include <vector>

BOOST_FIXTURE_TEST_SUITE(checkqueue_tests, TestingSetup)

Expand Down
6 changes: 4 additions & 2 deletions src/test/descriptor_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include <boost/test/unit_test.hpp>
#include <script/descriptor.h>
#include <script/sign.h>
#include <script/standard.h>
#include <string>
#include <test/util/setup_common.h>
#include <util/strencodings.h>

#include <boost/test/unit_test.hpp>

#include <string>
#include <vector>

namespace {
Expand Down
5 changes: 3 additions & 2 deletions src/test/net_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@

#include <addrdb.h>
#include <addrman.h>
#include <boost/test/unit_test.hpp>
#include <chainparams.h>
#include <clientversion.h>
#include <net.h>
#include <netbase.h>
#include <serialize.h>
#include <streams.h>
#include <string>
#include <test/util/setup_common.h>
#include <util/memory.h>
#include <util/string.h>
#include <util/system.h>

#include <boost/test/unit_test.hpp>

#include <memory>
#include <string>

class CAddrManSerializationMock : public CAddrMan
{
Expand Down
1 change: 1 addition & 0 deletions src/test/uint256_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <version.h>

#include <boost/test/unit_test.hpp>

#include <iomanip>
#include <sstream>
#include <string>
Expand Down

0 comments on commit fa4632c

Please sign in to comment.