diff --git a/compiler-rt/lib/asan/tests/asan_interface_test.cc b/compiler-rt/lib/asan/tests/asan_interface_test.cc index e4e9524e73b7..d13962b8f505 100644 --- a/compiler-rt/lib/asan/tests/asan_interface_test.cc +++ b/compiler-rt/lib/asan/tests/asan_interface_test.cc @@ -14,6 +14,7 @@ #include "sanitizer_common/sanitizer_internal_defs.h" #include #include +#include TEST(AddressSanitizerInterface, GetEstimatedAllocatedSize) { EXPECT_EQ(0U, __sanitizer_get_estimated_allocated_size(0)); diff --git a/compiler-rt/lib/asan/tests/asan_internal_interface_test.cc b/compiler-rt/lib/asan/tests/asan_internal_interface_test.cc index ae4759478170..e247bb4299fa 100644 --- a/compiler-rt/lib/asan/tests/asan_internal_interface_test.cc +++ b/compiler-rt/lib/asan/tests/asan_internal_interface_test.cc @@ -12,6 +12,7 @@ //===----------------------------------------------------------------------===// #include "asan_interface_internal.h" #include "asan_test_utils.h" +#include TEST(AddressSanitizerInternalInterface, SetShadow) { std::vector buffer(17, 0xff); diff --git a/compiler-rt/lib/asan/tests/asan_mem_test.cc b/compiler-rt/lib/asan/tests/asan_mem_test.cc index 4a941faa0430..c3208868464e 100644 --- a/compiler-rt/lib/asan/tests/asan_mem_test.cc +++ b/compiler-rt/lib/asan/tests/asan_mem_test.cc @@ -11,6 +11,7 @@ // //===----------------------------------------------------------------------===// #include "asan_test_utils.h" +#include template void MemSetOOBTestTemplate(size_t length) { @@ -76,7 +77,7 @@ TEST(AddressSanitizer, MemSetOOBTest) { // Strictly speaking we are not guaranteed to find such two pointers, // but given the structure of asan's allocator we will. static bool AllocateTwoAdjacentArrays(char **x1, char **x2, size_t size) { - vector v; + std::vector v; bool res = false; for (size_t i = 0; i < 1000U && !res; i++) { v.push_back(reinterpret_cast(new char[size])); diff --git a/compiler-rt/lib/asan/tests/asan_test_config.h b/compiler-rt/lib/asan/tests/asan_test_config.h index 92f276307481..8493f41ef4dc 100644 --- a/compiler-rt/lib/asan/tests/asan_test_config.h +++ b/compiler-rt/lib/asan/tests/asan_test_config.h @@ -17,13 +17,9 @@ #ifndef ASAN_TEST_CONFIG_H #define ASAN_TEST_CONFIG_H -#include #include -#include using std::string; -using std::vector; -using std::map; #ifndef ASAN_UAR # error "please define ASAN_UAR"