Fix -Wunused-function warnings in ASAN builds.

A=thakis@chromium.org
BUG=chromium:573250
Original Review: https://codereview.chromium.org/1551963002/

Review URL: https://codereview.chromium.org/1551983002 .
This commit is contained in:
Lei Zhang 2015-12-30 15:44:02 -08:00
parent 257123ca70
commit f9b60452e1

View file

@ -262,8 +262,6 @@ TEST(ExceptionHandlerTest, ChildCrashWithFD) {
ASSERT_NO_FATAL_FAILURE(ChildCrash(true)); ASSERT_NO_FATAL_FAILURE(ChildCrash(true));
} }
#endif // !ADDRESS_SANITIZER
static bool DoneCallbackReturnFalse(const MinidumpDescriptor& descriptor, static bool DoneCallbackReturnFalse(const MinidumpDescriptor& descriptor,
void* context, void* context,
bool succeeded) { bool succeeded) {
@ -305,8 +303,6 @@ static bool InstallRaiseSIGKILL() {
return sigaction(SIGSEGV, &sa, NULL) != -1; return sigaction(SIGSEGV, &sa, NULL) != -1;
} }
#ifndef ADDRESS_SANITIZER
static void CrashWithCallbacks(ExceptionHandler::FilterCallback filter, static void CrashWithCallbacks(ExceptionHandler::FilterCallback filter,
ExceptionHandler::MinidumpCallback done, ExceptionHandler::MinidumpCallback done,
string path) { string path) {
@ -878,6 +874,8 @@ TEST(ExceptionHandlerTest, ModuleInfo) {
unlink(minidump_desc.path()); unlink(minidump_desc.path());
} }
#ifndef ADDRESS_SANITIZER
static const unsigned kControlMsgSize = static const unsigned kControlMsgSize =
CMSG_SPACE(sizeof(int)) + CMSG_SPACE(sizeof(struct ucred)); CMSG_SPACE(sizeof(int)) + CMSG_SPACE(sizeof(struct ucred));
@ -930,8 +928,6 @@ CrashHandler(const void* crash_context, size_t crash_context_size,
return true; return true;
} }
#ifndef ADDRESS_SANITIZER
TEST(ExceptionHandlerTest, ExternalDumper) { TEST(ExceptionHandlerTest, ExternalDumper) {
int fds[2]; int fds[2];
ASSERT_NE(socketpair(AF_UNIX, SOCK_DGRAM, 0, fds), -1); ASSERT_NE(socketpair(AF_UNIX, SOCK_DGRAM, 0, fds), -1);