Add test case for ping and pong
This provides a simple example for how to test, and also provides a
staring point for the tests for the logger.
Change-Id: Ieac6858156627c0efcdbb739612e6a4efaf19b80
diff --git a/aos/events/pong_lib.h b/aos/events/pong_lib.h
new file mode 100644
index 0000000..17d779c
--- /dev/null
+++ b/aos/events/pong_lib.h
@@ -0,0 +1,22 @@
+#ifndef AOS_EVENTS_PONG_LIB_H_
+#define AOS_EVENTS_PONG_LIB_H_
+
+#include "aos/events/event_loop.h"
+#include "aos/events/pong_generated.h"
+#include "aos/events/ping_generated.h"
+
+namespace aos {
+
+// Class which replies to a Ping message with a Pong message immediately.
+class Pong {
+ public:
+ Pong(EventLoop *event_loop);
+
+ private:
+ EventLoop *event_loop_;
+ aos::Sender<examples::Pong> sender_;
+};
+
+} // namespace aos
+
+#endif // AOS_EVENTS_PONG_LIB_H_