cubeb/test
Paul Adenot b8765e132d 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
..
README.md Add notes on writing gtests. 2016-11-11 15:48:19 +13:00
common.h tests: check correctly the audio buffer values range (BMO 1484541). (#461) 2018-10-18 16:57:01 +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 Add test case for data_callback returning error. 2022-03-30 18:12:01 +13: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 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_devices.cpp tests: Fix crash when device enumeration is not supported 2020-04-26 13:50:49 +12:00
test_duplex.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_latency.cpp tests: check correctly the audio buffer values range (BMO 1484541). (#461) 2018-10-18 16:57:01 +02:00
test_logging.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_loopback.cpp fix a few warnings (#571) 2020-01-22 12:00:49 +01:00
test_overload_callback.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_record.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_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_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.