aaudio: add unit test for FIFO

Write data, read it back and verify.
Try to trigger wrap-around conditions.

Bug: 78139448
Test: this is a test
Change-Id: I4247fcf57a25c97c6ab8ce9671d0f61556ecef6a
diff --git a/media/libaaudio/tests/Android.bp b/media/libaaudio/tests/Android.bp
index beec9e2..68194db 100644
--- a/media/libaaudio/tests/Android.bp
+++ b/media/libaaudio/tests/Android.bp
@@ -160,3 +160,10 @@
         "libutils",
     ],
 }
+
+cc_test {
+    name: "test_atomic_fifo",
+    defaults: ["libaaudio_tests_defaults"],
+    srcs: ["test_atomic_fifo.cpp"],
+    shared_libs: ["libaaudio"],
+}