aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbohu <bohu@google.com>2014-07-23 15:15:05 -0700
committerDavid 'Digit' Turner <digit@google.com>2014-07-28 21:04:47 +0200
commitef4b60f5f7700799343b8950a14139626b33825e (patch)
tree669987c95cd9f1259a5682bbc7ff02f5df535e17 /include
parentfc9595599991a82a2e8348d494cfd15b32de9ad8 (diff)
downloadqemu-ef4b60f5f7700799343b8950a14139626b33825e.tar.gz
Add unit tests for SocketDrainer class.
Provide unit tests to exercise the interfaces (both C and C++) and make sure the SocketDrainer drains socket before closing it. Change-Id: I36f7e31181b89337c747cb07ab6605341aae90fc
Diffstat (limited to 'include')
-rw-r--r--include/android/iolooper.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/android/iolooper.h b/include/android/iolooper.h
index 0345774593..f835c333a5 100644
--- a/include/android/iolooper.h
+++ b/include/android/iolooper.h
@@ -1,8 +1,12 @@
#ifndef IOLOOPER_H
#define IOLOOPER_H
+#include "android/utils/compiler.h"
+
#include <stdint.h>
+ANDROID_BEGIN_HEADER
+
/* An IOLooper is an abstraction for select() */
typedef struct IoLooper IoLooper;
@@ -65,4 +69,6 @@ int64_t iolooper_now(void);
*/
int iolooper_wait_absolute(IoLooper* iol, int64_t deadline);
+ANDROID_END_HEADER
+
#endif /* IOLOOPER_H */