summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHidehiko Abe <hidehiko@google.com>2018-03-12 04:36:28 +0000
committerandroid-build-merger <android-build-merger@google.com>2018-03-12 04:36:28 +0000
commita13352a25f93d8dba3e2c70ca6bb164544810f38 (patch)
tree3308b0533dc17dcf4fbc56acc74b48845af4e4a1
parentcd90a4935502d52303dba2d09a4980e9535c7d1c (diff)
parentc168cf037626b5bee4041f5556a12d7bff565e48 (diff)
downloadlibchrome-a13352a25f93d8dba3e2c70ca6bb164544810f38.tar.gz
Remove unnecessary diffs from libchrome. am: b1919cfb4a
am: c168cf0376 Change-Id: Ibae5aa2c9bc79100d4a9670d07e5f4f04847441e
-rw-r--r--build/build_config.h36
-rw-r--r--testing/platform_test.h11
2 files changed, 37 insertions, 10 deletions
diff --git a/build/build_config.h b/build/build_config.h
index 80a93d3d43..219b0e2ad9 100644
--- a/build/build_config.h
+++ b/build/build_config.h
@@ -6,6 +6,7 @@
// Operating System:
// OS_WIN / OS_MACOSX / OS_LINUX / OS_POSIX (MACOSX or LINUX) /
// OS_NACL (NACL_SFI or NACL_NONSFI) / OS_NACL_SFI / OS_NACL_NONSFI
+// OS_CHROMEOS is set by the build system
// Compiler:
// COMPILER_MSVC / COMPILER_GCC
// Processor:
@@ -84,9 +85,10 @@
#endif
#elif defined(_WIN32)
#define OS_WIN 1
-#define TOOLKIT_VIEWS 1
#elif defined(__FreeBSD__)
#define OS_FREEBSD 1
+#elif defined(__NetBSD__)
+#define OS_NETBSD 1
#elif defined(__OpenBSD__)
#define OS_OPENBSD 1
#elif defined(__sun)
@@ -103,15 +105,16 @@
// For access to standard BSD features, use OS_BSD instead of a
// more specific macro.
-#if defined(OS_FREEBSD) || defined(OS_OPENBSD)
+#if defined(OS_FREEBSD) || defined(OS_NETBSD) || defined(OS_OPENBSD)
#define OS_BSD 1
#endif
// For access to standard POSIXish features, use OS_POSIX instead of a
// more specific macro.
#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \
- defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(OS_ANDROID) || \
- defined(OS_NACL) || defined(OS_QNX)
+ defined(OS_NETBSD) || defined(OS_OPENBSD) || defined(OS_SOLARIS) || \
+ defined(OS_ANDROID) || defined(OS_OPENBSD) || defined(OS_SOLARIS) || \
+ defined(OS_ANDROID) || defined(OS_NACL) || defined(OS_QNX)
#define OS_POSIX 1
#endif
@@ -144,6 +147,31 @@
#define ARCH_CPU_X86 1
#define ARCH_CPU_32_BITS 1
#define ARCH_CPU_LITTLE_ENDIAN 1
+#elif defined(__s390x__)
+#define ARCH_CPU_S390_FAMILY 1
+#define ARCH_CPU_S390X 1
+#define ARCH_CPU_64_BITS 1
+#define ARCH_CPU_BIG_ENDIAN 1
+#elif defined(__s390__)
+#define ARCH_CPU_S390_FAMILY 1
+#define ARCH_CPU_S390 1
+#define ARCH_CPU_31_BITS 1
+#define ARCH_CPU_BIG_ENDIAN 1
+#elif defined(__PPC64__) && defined(__BIG_ENDIAN__)
+#define ARCH_CPU_PPC64_FAMILY 1
+#define ARCH_CPU_PPC64 1
+#define ARCH_CPU_64_BITS 1
+#define ARCH_CPU_BIG_ENDIAN 1
+#elif defined(__PPC64__) && defined(__LITTLE_ENDIAN__)
+#define ARCH_CPU_PPC64_FAMILY 1
+#define ARCH_CPU_PPC64 1
+#define ARCH_CPU_64_BITS 1
+#define ARCH_CPU_LITTLE_ENDIAN 1
+#elif defined(__PPC__)
+#define ARCH_CPU_PPC_FAMILY 1
+#define ARCH_CPU_PPC 1
+#define ARCH_CPU_32_BITS 1
+#define ARCH_CPU_BIG_ENDIAN 1
#elif defined(__ARMEL__)
#define ARCH_CPU_ARM_FAMILY 1
#define ARCH_CPU_ARMEL 1
diff --git a/testing/platform_test.h b/testing/platform_test.h
index 04fc845bd9..f993864d61 100644
--- a/testing/platform_test.h
+++ b/testing/platform_test.h
@@ -8,11 +8,7 @@
#include <gtest/gtest.h>
#if defined(GTEST_OS_MAC)
-#ifdef __OBJC__
-@class NSAutoreleasePool;
-#else
-class NSAutoreleasePool;
-#endif
+#include <objc/objc.h>
// The purpose of this class us to provide a hook for platform-specific
// operations across unit tests. For example, on the Mac, it creates and
@@ -27,7 +23,10 @@ class PlatformTest : public testing::Test {
PlatformTest();
private:
- NSAutoreleasePool* pool_;
+ // |pool_| is a NSAutoreleasePool, but since this header may be imported from
+ // files built with Objective-C ARC that forbids explicit usage of
+ // NSAutoreleasePools, it is declared as id here.
+ id pool_;
};
#else
typedef testing::Test PlatformTest;