File tree Expand file tree Collapse file tree 6 files changed +25
-10
lines changed Expand file tree Collapse file tree 6 files changed +25
-10
lines changed Original file line number Diff line number Diff line change
1
+ # TODO(crbug.com/336474469): remove this after enabling the check in parent dir.
2
+ InheritParentConfig : true
3
+ Checks : misc-include-cleaner
Original file line number Diff line number Diff line change
1
+ # TODO(crbug.com/336474469): remove this after enabling the check in parent dir.
2
+ Diagnostics :
3
+ UnusedIncludes : Strict
4
+ MissingIncludes : Strict
Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style license that can be
3
3
// found in the LICENSE file.
4
4
5
+ #include < stdlib.h>
6
+
5
7
#include < algorithm>
6
8
#include < cstddef>
7
9
#include < cstdlib>
Original file line number Diff line number Diff line change 6
6
7
7
#include < memory>
8
8
9
- #include " base/allocator/buildflags.h"
10
- #include " base/allocator/partition_allocator/src/partition_alloc/address_pool_manager_bitmap.h"
11
- #include " base/allocator/partition_allocator/src/partition_alloc/partition_address_space.h"
12
- #include " build/build_config.h"
9
+ #include " base/allocator/partition_allocator/src/partition_alloc/partition_alloc_buildflags.h"
13
10
#include " build/buildflag.h"
11
+ #include " build/rust/tests/test_rust_shared_library/src/lib.rs.h"
14
12
#include " testing/gtest/include/gtest/gtest.h"
15
13
16
- #include " build/rust/tests/test_rust_shared_library/src/lib.rs.h"
14
+ #if BUILDFLAG(HAS_64_BIT_POINTERS)
15
+ #include " base/allocator/partition_allocator/src/partition_alloc/partition_address_space.h"
16
+ #else
17
+ #include " base/allocator/partition_allocator/src/partition_alloc/address_pool_manager_bitmap.h"
18
+ #endif
17
19
18
20
TEST (RustSharedTest, CppCallingIntoRust_BasicFFI) {
19
21
EXPECT_EQ (7 , add_two_ints_via_rust (3 , 4 ));
Original file line number Diff line number Diff line change 6
6
7
7
#include < memory>
8
8
9
- #include " base/allocator/buildflags.h"
10
- #include " base/allocator/partition_allocator/src/partition_alloc/address_pool_manager_bitmap.h"
11
- #include " base/allocator/partition_allocator/src/partition_alloc/partition_address_space.h"
12
- #include " build/build_config.h"
9
+ #include " base/allocator/partition_allocator/src/partition_alloc/partition_alloc_buildflags.h"
13
10
#include " build/buildflag.h"
11
+ #include " build/rust/tests/test_rust_static_library/src/lib.rs.h"
14
12
#include " testing/gtest/include/gtest/gtest.h"
15
13
16
- #include " build/rust/tests/test_rust_static_library/src/lib.rs.h"
14
+ #if BUILDFLAG(HAS_64_BIT_POINTERS)
15
+ #include " base/allocator/partition_allocator/src/partition_alloc/partition_address_space.h"
16
+ #else
17
+ #include " base/allocator/partition_allocator/src/partition_alloc/address_pool_manager_bitmap.h"
18
+ #endif
17
19
18
20
TEST (RustStaticTest, CppCallingIntoRust_BasicFFI) {
19
21
EXPECT_EQ (7 , add_two_ints_via_rust (3 , 4 ));
Original file line number Diff line number Diff line change 4
4
5
5
#include " build/rust/tests/test_rust_calling_cpp/cpp_library.h"
6
6
7
+ #include < cstdint>
8
+
7
9
int32_t mul_by_2_in_cpp_library (int32_t a) {
8
10
return a * 2 ;
9
11
}
You can’t perform that action at this time.
0 commit comments