Index: webrtc/base/bitbuffer_unittest.cc |
diff --git a/webrtc/base/bitbuffer_unittest.cc b/webrtc/base/bitbuffer_unittest.cc |
index 89d3524677dc4f6abea1d9e48dba6df60b791ec4..c47f92c59d332c738b4da903fd651d3bad2311ed 100644 |
--- a/webrtc/base/bitbuffer_unittest.cc |
+++ b/webrtc/base/bitbuffer_unittest.cc |
@@ -166,10 +166,12 @@ TEST(BitBufferTest, SetOffsetValues) { |
// Disable death test on Android because it relies on fork() and doesn't play |
// nicely. |
+#if defined(GTEST_HAS_DEATH_TEST) |
#if !defined(WEBRTC_ANDROID) |
// Passing a NULL out parameter is death. |
EXPECT_DEATH(buffer.GetCurrentOffset(&byte_offset, NULL), ""); |
#endif |
+#endif |
} |
uint64 GolombEncoded(uint32 val) { |