Skip to content

Commit 41ebce3

Browse files
authored
Merge pull request ceph#60992 from MaxKellermann/test__includes
test: add missing includes Reviewed-by: Casey Bodley <[email protected]>
2 parents d03901b + 1bd5571 commit 41ebce3

File tree

60 files changed

+103
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+103
-3
lines changed

src/test/bench_log.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "common/config.h"
1111
#include "common/ceph_argparse.h"
1212
#include "global/global_init.h"
13+
#include "log/Log.h"
1314

1415
#define dout_context g_ceph_context
1516

src/test/client/TestClient.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "msg/Messenger.h"
2121
#include "mon/MonClient.h"
2222
#include "osdc/ObjectCacher.h"
23+
#include "osdc/Objecter.h"
2324
#include "client/MetaRequest.h"
2425
#include "client/Client.h"
2526
#include "messages/MClientReclaim.h"

src/test/cls_rgw/test_cls_rgw_stats.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "common/dout.h"
1111
#include "common/errno.h"
1212
#include "common/random_string.h"
13+
#include "include/random.h" // for ceph::util::generate_random_number()
1314
#include "global/global_context.h"
1415
#include "test/librados/test_cxx.h"
1516

src/test/common/test_async_shared_mutex.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "common/async/shared_mutex.h"
1616
#include <future>
1717
#include <optional>
18+
#include <shared_mutex> // for std::shared_lock
1819
#include <boost/asio/bind_executor.hpp>
1920
#include <boost/asio/io_context.hpp>
2021
#include <gtest/gtest.h>

src/test/crimson/test_messenger_thrash.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#include "crimson/net/Messenger.h"
2323
#include "test/crimson/ctest_utils.h"
2424

25+
#include <boost/random/uniform_int.hpp>
26+
2527
using namespace std::chrono_literals;
2628
namespace bpo = boost::program_options;
2729
using crimson::common::local_conf;

src/test/crimson/test_monc.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "common/ceph_argparse.h"
33
#include "crimson/common/auth_handler.h"
44
#include "crimson/common/config_proxy.h"
5+
#include "crimson/common/perf_counters_collection.h"
56
#include "crimson/mon/MonClient.h"
67
#include "crimson/net/Connection.h"
78
#include "crimson/net/Messenger.h"

src/test/fio/fio_ceph_objectstore.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
#include "os/ObjectStore.h"
1717
#include "global/global_init.h"
18+
#include "common/debug.h"
1819
#include "common/errno.h"
1920
#include "include/intarith.h"
2021
#include "include/stringify.h"
@@ -29,6 +30,12 @@
2930
#include "include/ceph_assert.h" // fio.h clobbers our assert.h
3031
#include <algorithm>
3132

33+
#if defined(WITH_SEASTAR) && !defined(WITH_ALIEN)
34+
#include "crimson/common/perf_counters_collection.h"
35+
#else
36+
#include "common/perf_counters_collection.h"
37+
#endif
38+
3239
#define dout_context g_ceph_context
3340
#define dout_subsys ceph_subsys_
3441

src/test/immutable_object_cache/test_DomainSocket.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66

77
#include "gtest/gtest.h"
88
#include "include/Context.h"
9+
#include "include/unordered_set.h"
910
#include "global/global_init.h"
1011
#include "global/global_context.h"
1112

1213
#include "test/immutable_object_cache/test_common.h"
1314
#include "tools/immutable_object_cache/CacheClient.h"
1415
#include "tools/immutable_object_cache/CacheServer.h"
1516

17+
using ceph::unordered_set;
1618
using namespace ceph::immutable_obj_cache;
1719

1820
class TestCommunication :public ::testing::Test {

src/test/librados/aio_cxx.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <errno.h>
22
#include <fcntl.h>
3+
#include <deque>
34
#include <sstream>
45
#include <string>
56
#include <utility>

src/test/librados/misc.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#include "include/scope_guard.h"
1313
#include "include/stringify.h"
1414
#include "common/Checksummer.h"
15+
#include "common/Clock.h" // for ceph_clock_now()
16+
#include "common/config_proxy.h" // for class ConfigProxy
1517
#include "global/global_context.h"
1618
#include "test/librados/test.h"
1719
#include "test/librados/TestCase.h"

0 commit comments

Comments
 (0)