aboutsummaryrefslogtreecommitdiff
path: root/tests/include
diff options
context:
space:
mode:
authordvdli <dvdli@google.com>2020-11-25 17:23:42 +0800
committerdvdli <dvdli@google.com>2020-11-26 11:11:19 +0800
commitb59e5e1b11a4cb3919ac0c7d1fffb4e7452424e0 (patch)
tree70f7902a7f0bf8ca3203499b576460cf7dc33382 /tests/include
parent27d5d1a4f778fe76867dd03537eadfaf6cc21087 (diff)
add unit tests
1. add mixer event test 2. add pcm capturing test 3. add pcm loopback test
Diffstat (limited to 'tests/include')
-rw-r--r--tests/include/pcm_test_device.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/include/pcm_test_device.h b/tests/include/pcm_test_device.h
index 1932737..f6e7807 100644
--- a/tests/include/pcm_test_device.h
+++ b/tests/include/pcm_test_device.h
@@ -40,8 +40,13 @@ namespace testing {
#define TEST_LOOPBACK_PALYBACK_DEVICE 0
#endif
+#ifndef TEST_LOOPBACK_CAPTURE_DEVICE
+#define TEST_LOOPBACK_CAPTURE_DEVICE 1
+#endif
+
constexpr unsigned int kLoopbackCard = TEST_LOOPBACK_CARD;
constexpr unsigned int kLoopbackPlaybackDevice = TEST_LOOPBACK_PALYBACK_DEVICE;
+constexpr unsigned int kLoopbackCaptureDevice = TEST_LOOPBACK_CAPTURE_DEVICE;
} // namespace testing
} // namespace tinyalse