summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-08 21:14:23 +0200
committerwm4 <wm4@nowhere>2015-05-08 21:14:23 +0200
commit8d5924f2c9c7d80b45cd68b44cb9c74e7b0b5a8c (patch)
tree5e2ced5d02fa4983627bc1baa09e42c98ccd523b /test
parent8b7035c8ff15f14c17b6c019e951226b9eeaca02 (diff)
downloadmpv-8d5924f2c9c7d80b45cd68b44cb9c74e7b0b5a8c.tar.bz2
mpv-8d5924f2c9c7d80b45cd68b44cb9c74e7b0b5a8c.tar.xz
audio: remove mp_chmap_contains()
It's unsued now.
Diffstat (limited to 'test')
-rw-r--r--test/chmap.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/chmap.c b/test/chmap.c
index f0e8a1802d..4bd4ba7b58 100644
--- a/test/chmap.c
+++ b/test/chmap.c
@@ -24,33 +24,9 @@ static void test_mp_chmap_diff(void **state) {
assert_int_equal(diff.speaker[2], MP_SPEAKER_ID_BC);
}
-static void test_mp_chmap_contains_with_related_chmaps(void **state) {
- struct mp_chmap a;
- struct mp_chmap b;
-
- mp_chmap_from_str(&a, bstr0("3.1"));
- mp_chmap_from_str(&b, bstr0("2.1"));
-
- assert_true(mp_chmap_contains(&a, &b));
- assert_false(mp_chmap_contains(&b, &a));
-}
-
-static void test_mp_chmap_contains_with_unrelated_chmaps(void **state) {
- struct mp_chmap a;
- struct mp_chmap b;
-
- mp_chmap_from_str(&a, bstr0("mono"));
- mp_chmap_from_str(&b, bstr0("stereo"));
-
- assert_false(mp_chmap_contains(&a, &b));
- assert_false(mp_chmap_contains(&b, &a));
-}
-
int main(void) {
const UnitTest tests[] = {
unit_test(test_mp_chmap_diff),
- unit_test(test_mp_chmap_contains_with_related_chmaps),
- unit_test(test_mp_chmap_contains_with_unrelated_chmaps),
};
return run_tests(tests);
}