Extend ifdef to include helper functions

The previous change to fix compiling on Android < N forgot to include a
helper in the ifdef, thus not fixing the problem. This change extends
the ifdef to include all helpers used by the test.

Change-Id: Ibb3030f54a81b5609a0b55ccef387a3cba22d088
Reviewed-on: https://chromium-review.googlesource.com/895240
Reviewed-by: Mike Frysinger <vapier@chromium.org>
diff --git a/src/client/linux/handler/exception_handler_unittest.cc b/src/client/linux/handler/exception_handler_unittest.cc
index d05f3eb..329d014 100644
--- a/src/client/linux/handler/exception_handler_unittest.cc
+++ b/src/client/linux/handler/exception_handler_unittest.cc
@@ -258,6 +258,7 @@
   ASSERT_NO_FATAL_FAILURE(ChildCrash(true));
 }
 
+#if !defined(__ANDROID_API__) || __ANDROID_API__ >= __ANDROID_API_N__
 static void* SleepFunction(void* unused) {
   while (true) usleep(1000000);
   return NULL;
@@ -270,7 +271,6 @@
   return NULL;
 }
 
-#if !defined(__ANDROID_API__) || __ANDROID_API__ >= __ANDROID_API_N__
 // Tests that concurrent crashes do not enter a loop by alternately triggering
 // the signal handler.
 TEST(ExceptionHandlerTest, ParallelChildCrashesDontHang) {
@@ -316,7 +316,7 @@
   // SIGKILL.
   ASSERT_NO_FATAL_FAILURE(WaitForProcessToTerminate(child, SIGSEGV));
 }
-#endif
+#endif  // !defined(__ANDROID_API__) || __ANDROID_API__ >= __ANDROID_API_N__
 
 static bool DoneCallbackReturnFalse(const MinidumpDescriptor& descriptor,
                                     void* context,