diff --git a/base/BUILD.gn b/base/BUILD.gn index 6b314a14d261..554ea87f9e54 100644 --- a/base/BUILD.gn +++ b/base/BUILD.gn @@ -18,13 +18,13 @@ source_set("base") { source_set("base_unittests") { testonly = true sources = [ + "//base/tools_sanity_unittest.cc", "build_time_unittest.cc", "feature_override_unittest.cc", "test/current_test_vendor_is_brave_unittest.cc", "test/launcher/teamcity_reporter_integration_unittest.cc", "test/launcher/teamcity_reporter_unittest.cc", "test/launcher/teamcity_service_messages_unittest.cc", - "tools_sanity_unittest.cc", ] deps = [ "//base", diff --git a/base/tools_sanity_unittest.cc b/base/tools_sanity_unittest.cc deleted file mode 100644 index 1c83aa55027f..000000000000 --- a/base/tools_sanity_unittest.cc +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (c) 2020 The Brave Authors. All rights reserved. - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#ifdef UNSAFE_BUFFERS_BUILD -// TODO(https://github.com/brave/brave-browser/issues/41661): Remove this and -// convert code to safer constructs. -#pragma allow_unsafe_buffers -#endif - -#include "testing/gtest/include/gtest/gtest.h" - -namespace base { - -TEST(ToolsSanityTest, DISABLED_AddressSanitizerLocalOOBCrashTest) { - // Intentionally crash to make sure AddressSanitizer is instrumenting - // the local variables. - int array[5]; - int* volatile access = &array[5]; - *access = 43; -} - -} // namespace base