From 13d9e27ef04797cfd00ac56cb1ee37f71d70214e Mon Sep 17 00:00:00 2001 From: "digit@chromium.org" Date: Thu, 23 Aug 2012 15:45:01 +0000 Subject: Fix Breakpad unit tests build for Android. This patch contains the source-related fixes to ensure that the Breakpad unit tests build properly when targetting Android. Calling 'make check' still fails because there is still no way to run the unit test programs on a device. This will be addressed by a future patch. Important notes: - You must target Android API level 9 (Gingerbread) or higher to build the unit tests. This requirement is due to the current GTest revision used in the breakpad source tree. - This patch adds headers providing inlined C library functions missing from the NDK (see src/common/android/testing). They are inlined to avoid modifying Makefile.am and other build files. - Similarly, the header-fix under src/common/android/testing/include is only required by GTest's current revision. E.g. it's not needed when building Breakpad as part of Chromium which uses a more up-to-date revision. Review URL: https://breakpad.appspot.com/439002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1020 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/tests/auto_tempdir.h | 1 + src/common/tests/file_utils.cc | 1 + 2 files changed, 2 insertions(+) (limited to 'src/common/tests') diff --git a/src/common/tests/auto_tempdir.h b/src/common/tests/auto_tempdir.h index a54bc053..1df88db8 100644 --- a/src/common/tests/auto_tempdir.h +++ b/src/common/tests/auto_tempdir.h @@ -44,6 +44,7 @@ #define TEMPDIR "/tmp" #else #define TEMPDIR "/data/local/tmp" +#include "common/android/testing/mkdtemp.h" #endif namespace google_breakpad { diff --git a/src/common/tests/file_utils.cc b/src/common/tests/file_utils.cc index 1264b078..80a6b650 100644 --- a/src/common/tests/file_utils.cc +++ b/src/common/tests/file_utils.cc @@ -33,6 +33,7 @@ #include #include #include +#include #include #include "common/linux/eintr_wrapper.h" -- cgit v1.2.1