Chromium Code Reviews| Index: syzygy/agent/asan/rtl_impl_unittest.cc |
| diff --git a/syzygy/agent/asan/rtl_impl_unittest.cc b/syzygy/agent/asan/rtl_impl_unittest.cc |
| index 4a8426db9e6c520c560ccc71acdb101b8e13dfe5..848ace810f293462cda7a049d5827d47a24a6abd 100644 |
| --- a/syzygy/agent/asan/rtl_impl_unittest.cc |
| +++ b/syzygy/agent/asan/rtl_impl_unittest.cc |
| @@ -18,6 +18,7 @@ |
| #include "base/rand_util.h" |
| #include "gtest/gtest.h" |
| +#include "syzygy/agent/asan/reporter.h" |
| #include "syzygy/agent/asan/runtime.h" |
| #include "syzygy/agent/asan/shadow.h" |
| #include "syzygy/agent/asan/unittest_util.h" |
| @@ -151,3 +152,11 @@ TEST_F(AsanRtlImplTest, SetInformationWithNullHeapPtr) { |
| asan_HeapSetInformation(NULL, HeapEnableTerminationOnCorruption, |
| NULL, 0)); |
| } |
| + |
| +TEST_F(AsanRtlImplTest, ReinitializeCrashHandler) { |
| + agent::asan::ReporterInterface* reporter = asan_runtime_.crash_reporter(); |
|
Sébastien Marchand
2016/12/14 22:56:25
This test doesn't work as this test fixture can't
|
| + EXPECT_NE(nullptr, reporter); |
| + asan_ReinitializeCrashHandler(); |
| + EXPECT_NE(nullptr, asan_runtime_.crash_reporter()); |
| + EXPECT_NE(reporter, asan_runtime_.crash_reporter()); |
| +} |