cubeb/test
Mike Hommey 5491fc8b27
Only build duplex_collection_change_no_unregister when death tests are supported (#780)
2024-03-06 20:45:53 -08: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_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 Add a triple_buffer class that allows publishing data in a wait-free manner from a real-time thread to another thread. 2022-12-14 18:33:27 +01: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.