aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_audio.cpp
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2016-11-10 17:06:08 +1300
committerMatthew Gregan <[email protected]>2016-11-11 09:44:29 +1300
commit5574f4d3a18215843810a1affe531d8f0146b44b (patch)
treed154d2cef129a5d21a7a5235892165fd2c51f858 /test/test_audio.cpp
parent66c8539ca09125b1a6a1f45924cab1e73653b448 (diff)
downloadcubeb-5574f4d3a18215843810a1affe531d8f0146b44b.tar.gz
cubeb-5574f4d3a18215843810a1affe531d8f0146b44b.zip
Move tests out of main into their own test.
Diffstat (limited to 'test/test_audio.cpp')
-rw-r--r--test/test_audio.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/test/test_audio.cpp b/test/test_audio.cpp
index 62b39a3..a06cf05 100644
--- a/test/test_audio.cpp
+++ b/test/test_audio.cpp
@@ -245,7 +245,17 @@ cleanup:
return r;
}
-void run_channel_rate_test()
+TEST(audio, run_panning_volume_test_short)
+{
+ ASSERT_EQ(run_panning_volume_test(0), CUBEB_OK);
+}
+
+TEST(audio, run_panning_volume_test_float)
+{
+ ASSERT_EQ(run_panning_volume_test(1), CUBEB_OK);
+}
+
+TEST(audio, run_channel_rate_test)
{
int channel_values[] = {
1,
@@ -272,10 +282,3 @@ void run_channel_rate_test()
}
}
-
-TEST(audio, main)
-{
- ASSERT_EQ(run_panning_volume_test(0), CUBEB_OK);
- ASSERT_EQ(run_panning_volume_test(1), CUBEB_OK);
- run_channel_rate_test();
-}