cubeb/test
Paul Adenot 1ba9237364 Skip a couple more tests when a backend can't use audio input 2023-04-26 14:28:46 +02:00
..
README.md Add notes on writing gtests. 2016-11-11 15:48:19 +13:00
common.h Prevent running test that make use of audio input streams on backends that don't implement it 2023-04-26 14:28:46 +02:00
test_audio.cpp Inline values for stream params in test_logging.cpp, undef defines in test to avoid breaking unified builds when building tests in Firefox. 2022-12-02 15:40:20 +01:00
test_callback_ret.cpp Prevent running test that make use of audio input streams on backends that don't implement it 2023-04-26 14:28:46 +02:00
test_deadlock.cpp Inline values for stream params in test_logging.cpp, undef defines in test to avoid breaking unified builds when building tests in Firefox. 2022-12-02 15:40:20 +01:00
test_device_changed_callback.cpp Prevent running test that make use of audio input streams on backends that don't implement it 2023-04-26 14:28:46 +02:00
test_devices.cpp Prevent running test that make use of audio input streams on backends that don't implement it 2023-04-26 14:28:46 +02:00
test_duplex.cpp Skip a couple more tests when a backend can't use audio input 2023-04-26 14:28:46 +02:00
test_latency.cpp tests: check correctly the audio buffer values range (BMO 1484541). (#461) 2018-10-18 16:57:01 +02:00
test_logging.cpp Add a test to stress test the asynchronous logging system 2022-12-12 12:03:47 +01:00
test_loopback.cpp Skip a couple more tests when a backend can't use audio input 2023-04-26 14:28:46 +02:00
test_overload_callback.cpp Only run test_overload.cpp when using the WASAPI backend 2023-04-26 14:28:46 +02:00
test_record.cpp Prevent running test that make use of audio input streams on backends that don't implement it 2023-04-26 14:28:46 +02:00
test_resampler.cpp Inline values for stream params in test_logging.cpp, undef defines in test to avoid breaking unified builds when building tests in Firefox. 2022-12-02 15:40:20 +01:00
test_ring_array.cpp Move gtests under general "cubeb" test case for better Gecko integration. 2016-11-11 15:00:23 +13:00
test_ring_buffer.cpp Inline values for stream params in test_logging.cpp, undef defines in test to avoid breaking unified builds when building tests in Firefox. 2022-12-02 15:40:20 +01:00
test_sanity.cpp Inline values for stream params in test_logging.cpp, undef defines in test to avoid breaking unified builds when building tests in Firefox. 2022-12-02 15:40:20 +01:00
test_tone.cpp Inline values for stream params in test_logging.cpp, undef defines in test to avoid breaking unified builds when building tests in Firefox. 2022-12-02 15:40:20 +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 Move gtests under general "cubeb" test case for better Gecko integration. 2016-11-11 15:00:23 +13: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.