Skip to content

Commit ee23527

Browse files
committed
big includes cleanup
1 parent 4ccde32 commit ee23527

File tree

190 files changed

+559
-387
lines changed

Some content is hidden

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

190 files changed

+559
-387
lines changed

ortools/algorithms/BUILD.bazel

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ cc_test(
237237
srcs = ["knapsack_solver_test.cc"],
238238
deps = [
239239
":knapsack_solver_lib", # buildcleaner: keep
240-
"//ortools/base",
241240
"//ortools/base:gmock_main",
242241
"//ortools/util:time_limit",
242+
"@com_google_absl//absl/base:core_headers",
243243
],
244244
)
245245

@@ -284,8 +284,10 @@ cc_test(
284284
":dynamic_partition",
285285
"//ortools/base:gmock_main",
286286
"//ortools/base:stl_util",
287+
"@com_google_absl//absl/base:log_severity",
287288
"@com_google_absl//absl/random",
288289
"@com_google_absl//absl/random:bit_gen_ref",
290+
"@com_google_absl//absl/types:span",
289291
],
290292
)
291293

ortools/algorithms/adjustable_k_ary_heap_stress_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
#include "absl/flags/flag.h"
1919
#include "absl/log/check.h"
20+
#include "absl/log/log.h"
2021
#include "absl/random/random.h"
2122
#include "gtest/gtest.h"
2223
#include "ortools/algorithms/adjustable_k_ary_heap.h"
23-
#include "ortools/base/logging.h"
2424

2525
// Stress test for AdjustableKaryHeap.
2626
// The test generates a random heap of size num_elements. Then, it randomly

ortools/algorithms/dynamic_partition_test.cc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "absl/types/span.h"
2626
#include "gtest/gtest.h"
2727
#include "ortools/base/gmock.h"
28-
#include "ortools/base/macros.h" // for DEBUG_MODE.
2928
#include "ortools/base/stl_util.h"
3029

3130
namespace operations_research {
@@ -251,8 +250,13 @@ TEST(DynamicPartitionTest, FingerprintStressTest) {
251250
// The size are just indicative (in opt mode, we stress it a bit more).
252251
//
253252
// Timing as of 2014-04-30, on forge: fastbuild=7.5s, opt=22s.
254-
const int kNumPartitions = DEBUG_MODE ? 1000 : 4000;
255-
const int kPartitionSize = DEBUG_MODE ? 10 : 12;
253+
#if defined(NDEBUG)
254+
const int kNumPartitions = 4000;
255+
const int kPartitionSize = 12;
256+
#else
257+
const int kNumPartitions = 1000;
258+
const int kPartitionSize = 10;
259+
#endif
256260
const int kMaxNumParts = 3;
257261
std::mt19937 random(12345);
258262
std::vector<std::unique_ptr<DynamicPartition>> partitions(kNumPartitions);

ortools/algorithms/find_graph_symmetries.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "absl/container/flat_hash_set.h"
2929
#include "absl/flags/flag.h"
3030
#include "absl/log/check.h"
31+
#include "absl/log/log.h"
3132
#include "absl/numeric/int128.h"
3233
#include "absl/status/status.h"
3334
#include "absl/strings/str_format.h"
@@ -39,7 +40,6 @@
3940
#include "ortools/algorithms/dynamic_partition.h"
4041
#include "ortools/algorithms/dynamic_permutation.h"
4142
#include "ortools/algorithms/sparse_permutation.h"
42-
#include "ortools/base/logging.h"
4343
#include "ortools/graph/graph.h"
4444
#include "ortools/graph/iterators.h"
4545
#include "ortools/graph/util.h"

ortools/algorithms/n_choose_k.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
#include <vector>
2020

2121
#include "absl/log/check.h"
22+
#include "absl/log/log.h"
2223
#include "absl/numeric/int128.h"
2324
#include "absl/status/status.h"
2425
#include "absl/status/statusor.h"
2526
#include "absl/strings/str_format.h"
2627
#include "absl/time/clock.h"
2728
#include "absl/time/time.h"
2829
#include "ortools/algorithms/binary_search.h"
29-
#include "ortools/base/logging.h"
3030
#include "ortools/base/mathutil.h"
3131

3232
namespace operations_research {

ortools/algorithms/radix_sort.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
#include "absl/algorithm/container.h"
4747
#include "absl/base/casts.h"
4848
#include "absl/log/check.h"
49+
#include "absl/log/log.h"
4950
#include "absl/types/span.h"
50-
#include "ortools/base/logging.h"
5151

5252
namespace operations_research {
5353

ortools/algorithms/radix_sort_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <vector>
2525

2626
#include "absl/algorithm/container.h"
27+
#include "absl/log/log.h"
2728
#include "absl/random/bit_gen_ref.h"
2829
#include "absl/random/distributions.h"
2930
#include "absl/random/random.h"
@@ -32,7 +33,6 @@
3233
#include "gtest/gtest.h"
3334
#include "ortools/base/dump_vars.h"
3435
#include "ortools/base/gmock.h"
35-
#include "ortools/base/logging.h"
3636
#include "ortools/base/mathutil.h"
3737

3838
namespace operations_research {

ortools/algorithms/samples/simple_knapsack_program.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
#include <sstream>
2222
#include <vector>
2323

24+
#include "absl/log/log.h"
2425
#include "ortools/algorithms/knapsack_solver.h"
25-
#include "ortools/base/logging.h"
2626
// [END import]
2727

2828
namespace operations_research {

ortools/base/file.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
#include <string>
3434

3535
#include "absl/log/check.h"
36+
#include "absl/log/log.h"
3637
#include "absl/status/status.h"
3738
#include "absl/strings/str_cat.h"
3839
#include "absl/strings/string_view.h"
3940
#include "google/protobuf/io/tokenizer.h"
4041
#include "google/protobuf/message.h"
4142
#include "google/protobuf/text_format.h"
42-
#include "ortools/base/logging.h"
4343

4444
File::File(FILE* descriptor, absl::string_view name)
4545
: f_(descriptor), name_(name) {}

ortools/base/fuzztest.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,15 @@
1414
#ifndef OR_TOOLS_BASE_FUZZTEST_H_
1515
#define OR_TOOLS_BASE_FUZZTEST_H_
1616

17-
#include <memory>
18-
#include <string>
1917
#include <string_view>
2018
#include <tuple>
2119
#include <vector>
2220

21+
// #include "fuzztest/googletest_fixture_adapter.h"
2322
#include "fuzztest/domain.h"
2423
#include "fuzztest/fuzztest.h"
25-
#include "fuzztest/googletest_fixture_adapter.h"
2624
#include "fuzztest/init_fuzztest.h"
27-
#include "google/protobuf/message.h"
2825
#include "google/protobuf/text_format.h"
29-
#include "ortools/base/logging.h"
3026

3127
namespace fuzztest {
3228

0 commit comments

Comments
 (0)