breakpad/src/common/linux
Mark Brand 9a87ff661e Add ScopedTmpFile.
This replaces the existing AutoTestFile implementation with a simpler
implementation that uses O_TMPFILE to avoid having the temporary files
linked in the filesystem.

Refactor the existing tests to use the new ScopedTmpFile instead of
duplicating the same ScopedTestFile wrapper into each test.

Change-Id: Iee9416e52269eff271f748ec9d822aee6e28f59a
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/3971917
Reviewed-by: Lei Zhang <thestig@chromium.org>
2023-01-31 00:34:48 +00:00
..
tests Add ScopedTmpFile. 2023-01-31 00:34:48 +00:00
breakpad_getcontext.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
breakpad_getcontext.S Added riscv and riscv64 support for Linux 2022-09-09 08:44:46 +00:00
breakpad_getcontext_unittest.cc Added riscv and riscv64 support for Linux 2022-09-09 08:44:46 +00:00
crc32.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
crc32.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dump_symbols.cc Handle compressed DWARF data in LoadDwarfCFI 2022-12-21 21:16:29 +00:00
dump_symbols.h Add option to enable multiple symbol field in Linux tool 2022-12-08 18:28:34 +00:00
dump_symbols_unittest.cc Fix build failures. 2022-12-12 10:03:38 +00:00
eintr_wrapper.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
elf_core_dump.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
elf_core_dump.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
elf_core_dump_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
elf_gnu_compat.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
elf_symbols_to_module.cc Fix more memory leaks with proper smart pointer usage 2023-01-10 18:46:49 +00:00
elf_symbols_to_module.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
elf_symbols_to_module_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
elfutils-inl.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
elfutils.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
elfutils.h names anonymous structs in elfutils.h 2022-10-27 02:55:38 +00:00
file_id.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
file_id.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
file_id_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
google_crashdump_uploader.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
google_crashdump_uploader.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
google_crashdump_uploader_test.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
guid_creator.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
guid_creator.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
http_upload.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
http_upload.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
ignore_ret.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
libcurl_wrapper.cc LibcurlWrapper uses curl_global_cleanup 2023-01-27 20:36:21 +00:00
libcurl_wrapper.h LibcurlWrapper uses curl_global_cleanup 2023-01-27 20:36:21 +00:00
linux_libc_support.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
linux_libc_support.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
linux_libc_support_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
memory_mapped_file.cc Added riscv and riscv64 support for Linux 2022-09-09 08:44:46 +00:00
memory_mapped_file.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
memory_mapped_file_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
safe_readlink.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
safe_readlink.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
safe_readlink_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
scoped_tmpfile.cc Add ScopedTmpFile. 2023-01-31 00:34:48 +00:00
scoped_tmpfile.h Add ScopedTmpFile. 2023-01-31 00:34:48 +00:00
scoped_tmpfile_unittest.cc Add ScopedTmpFile. 2023-01-31 00:34:48 +00:00
symbol_collector_client.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
symbol_collector_client.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
symbol_upload.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
symbol_upload.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
synth_elf.cc fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
synth_elf.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
synth_elf_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
ucontext_constants.h Added riscv and riscv64 support for Linux 2022-09-09 08:44:46 +00:00