add test for AudioRecord constructor
This test contructs a number of AudioRecords from arguments
listed in an input file and outputs dumps of the constructed
AudioRecords to an output file.
The output file can be compared to previous iterations to spot regressions.
An reference input file and the corresponding output file are added for
further comparison.
Test: run this test
Change-Id: I0d1b596ca91c3c58f159887fbd48aa3f04ae38c2
diff --git a/media/libaudioclient/tests/Android.bp b/media/libaudioclient/tests/Android.bp
index e9c1606..52bb2fb 100644
--- a/media/libaudioclient/tests/Android.bp
+++ b/media/libaudioclient/tests/Android.bp
@@ -9,12 +9,27 @@
cc_test {
name: "test_create_audiotrack",
defaults: ["libaudioclient_tests_defaults"],
- srcs: ["test_create_audiotrack.cpp"],
+ srcs: ["test_create_audiotrack.cpp",
+ "test_create_utils.cpp"],
shared_libs: [
"libaudioclient",
+ "libbinder",
"libcutils",
"libutils",
- "libbinder",
],
data: ["track_test_input_*.txt"],
}
+
+cc_test {
+ name: "test_create_audiorecord",
+ defaults: ["libaudioclient_tests_defaults"],
+ srcs: ["test_create_audiorecord.cpp",
+ "test_create_utils.cpp"],
+ shared_libs: [
+ "libaudioclient",
+ "libbinder",
+ "libcutils",
+ "libutils",
+ ],
+ data: ["record_test_input_*.txt"],
+}