cubeb/test
John Lin 19fcbefe1a Invalidate timing info buffers when destorying AAudio stream.
aaudio_stream_get_position() returns incorrect result because
aaudio_stream_init() recycled destroyed stream where the
timing_info buffers contain stale data.
2024-04-30 10:52:29 +12:00
..
README.md Add notes on writing gtests. 2016-11-11 15:48:19 +13:00
common.h Include gtest.h in test/common.h 2023-11-10 15:52:55 +01:00
test_audio.cpp Non-functional change: clang-format tests 2023-11-10 15:31:52 +01:00
test_audio_dump.cpp Add internal utility to log audio streams to disk from real-time audio callbacks 2024-04-16 16:31:18 +02:00
test_callback_ret.cpp Allow not being able to get the minimum latency in test_callback_ret.cpp and test_logging.cpp, as it's not essential for the test 2023-11-21 11:08:34 +01:00
test_device_changed_callback.cpp Non-functional change: clang-format tests 2023-11-10 15:31:52 +01:00
test_devices.cpp Non-functional change: clang-format tests 2023-11-10 15:31:52 +01:00
test_duplex.cpp Only build duplex_collection_change_no_unregister when death tests are supported (#780) 2024-03-06 20:45:53 -08:00
test_latency.cpp Non-functional change: clang-format tests 2023-11-10 15:31:52 +01:00
test_logging.cpp Allow not being able to get the minimum latency in test_callback_ret.cpp and test_logging.cpp, as it's not essential for the test 2023-11-21 11:08:34 +01:00
test_loopback.cpp Non-functional change: clang-format tests 2023-11-10 15:31:52 +01:00
test_overload_callback.cpp Non-functional change: clang-format tests 2023-11-10 15:31:52 +01:00
test_record.cpp Non-functional change: clang-format tests 2023-11-10 15:31:52 +01:00
test_resampler.cpp Non-functional change: clang-format tests 2023-11-10 15:31:52 +01:00
test_ring_array.cpp Non-functional change: clang-format tests 2023-11-10 15:31:52 +01:00
test_ring_buffer.cpp Non-functional change: clang-format tests 2023-11-10 15:31:52 +01:00
test_sanity.cpp Relax a single test_sanity.cpp assertion when using OpenSL 2023-11-21 11:08:34 +01:00
test_tone.cpp Non-functional change: clang-format tests 2023-11-10 15:31:52 +01:00
test_triple_buffer.cpp Invalidate timing info buffers when destorying AAudio stream. 2024-04-30 10:52:29 +12:00
test_utils.cpp Non-functional change: clang-format tests 2023-11-10 15:31:52 +01:00

README.md

Notes on writing tests.

The googletest submodule is currently at 1.6 rather than the latest, and should only be updated to track the version used in Gecko to make test compatibility easier.

Always #include "gtest/gtest.h" before anything else.

All tests should be part of the "cubeb" test case, e.g. TEST(cubeb, my_test).

Tests are built stand-alone in cubeb, but built as a single unit in Gecko, so you must use unique names for globally visible items in each test, e.g. rather than state_cb use state_cb_my_test.