Test: Add a fuzzer for libmedia's metadata component
libmedia_metadata_fuzzer attempts to add random key/value pairs of the eligible types using metadata's appendBool and appendInt32 methods to a Metadata object. The fuzzer also calls the appendHeader() method to add a header, the updateLength() method during each iteration of appending key/val pairs and a resetParcel() method at the end.
Change-Id: I569c39954702f848bf5496528f7c3eb888c33ccc
diff --git a/media/libmedia/tests/fuzzer/Android.bp b/media/libmedia/tests/fuzzer/Android.bp
new file mode 100644
index 0000000..e58c396
--- /dev/null
+++ b/media/libmedia/tests/fuzzer/Android.bp
@@ -0,0 +1,10 @@
+cc_fuzz {
+ name: "libmedia_metadata_fuzzer",
+ srcs: [
+ "libmedia_metadata_fuzzer.cpp",
+ ],
+ shared_libs: [
+ "libmedia",
+ "libbinder",
+ ],
+}
\ No newline at end of file