linux: fix build breakage

2f7d40c4 Removed the last usage of ExpectTestModule() in
sanitized builds.

Change-Id: I6a894545f07b1c377f88820893c23a2296d74cc7
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2590205
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
Joshua Peraza 2020-12-14 10:55:20 -08:00 committed by Commit Bot
parent 44de18ca37
commit 8bf3cdd977

View File

@ -542,6 +542,7 @@ void ExpectModulesFromSelf(
#endif // !OS_ANDROID || !ARCH_CPU_ARMEL || __ANDROID_API__ >= 21
}
#if !defined(ADDRESS_SANITIZER) && !defined(MEMORY_SANITIZER)
void ExpectTestModule(ProcessReaderLinux* reader,
const std::string& module_name) {
for (const auto& module : reader->Modules()) {
@ -560,6 +561,7 @@ void ExpectTestModule(ProcessReaderLinux* reader,
}
ADD_FAILURE() << "Test module not found";
}
#endif // !ADDRESS_SANITIZER && !MEMORY_SANITIZER
TEST(ProcessReaderLinux, SelfModules) {
#if !defined(ADDRESS_SANITIZER) && !defined(MEMORY_SANITIZER)