Debian Codegraph @

third_party/rust/cubeb-sys/libcubeb/test/README.md

raw
1 Notes on writing tests.
2
3 The googletest submodule is currently at 1.6 rather than the latest, and should
4 only be updated to track the version used in Gecko to make test compatibility
5 easier.
6
7 Always #include "gtest/gtest.h" before *anything* else.
8
9 All tests should be part of the "cubeb" test case, e.g. TEST(cubeb, my_test).
10
11 Tests are built stand-alone in cubeb, but built as a single unit in Gecko, so
12 you must use unique names for globally visible items in each test, e.g. rather
13 than state_cb use state_cb_my_test.