[DEBUG] compilation OK
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include "debug.h"
|
||||
#include <river/river.h>
|
||||
#include <river/Manager.h>
|
||||
#include <river/Interface.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
@@ -363,13 +363,17 @@ namespace river_test_echo_delay {
|
||||
}
|
||||
};
|
||||
|
||||
static const std::string configurationRiver = "";
|
||||
|
||||
TEST(TestTime, testDelay) {
|
||||
river::initString(configurationRiver);
|
||||
std11::shared_ptr<river::Manager> manager;
|
||||
manager = river::Manager::create("testApplication");
|
||||
std11::shared_ptr<TestClass> process = std11::make_shared<TestClass>(manager);
|
||||
process->run();
|
||||
process.reset();
|
||||
usleep(500000);
|
||||
river::unInit();
|
||||
}
|
||||
};
|
||||
|
||||
|
@@ -128,15 +128,18 @@ namespace river_test_format {
|
||||
}
|
||||
};
|
||||
|
||||
static const std::string configurationRiver = "";
|
||||
|
||||
class testResampling : public ::testing::TestWithParam<float> {};
|
||||
TEST_P(testResampling, base) {
|
||||
river::initString(configurationRiver);
|
||||
std11::shared_ptr<river::Manager> manager;
|
||||
manager = river::Manager::create("testApplication");
|
||||
std11::shared_ptr<testOutCallbackType> process = std11::make_shared<testOutCallbackType>(manager, GetParam(), 2, audio::format_int16);
|
||||
process->run();
|
||||
process.reset();
|
||||
usleep(500000);
|
||||
river::unInit();
|
||||
}
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(InstantiationName,
|
||||
@@ -146,12 +149,14 @@ namespace river_test_format {
|
||||
|
||||
class testFormat : public ::testing::TestWithParam<audio::format> {};
|
||||
TEST_P(testFormat, base) {
|
||||
river::initString(configurationRiver);
|
||||
std11::shared_ptr<river::Manager> manager;
|
||||
manager = river::Manager::create("testApplication");
|
||||
std11::shared_ptr<testOutCallbackType> process = std11::make_shared<testOutCallbackType>(manager, 48000, 2, GetParam());
|
||||
process->run();
|
||||
process.reset();
|
||||
usleep(500000);
|
||||
river::unInit();
|
||||
}
|
||||
INSTANTIATE_TEST_CASE_P(InstantiationName,
|
||||
testFormat,
|
||||
@@ -160,12 +165,14 @@ namespace river_test_format {
|
||||
|
||||
class testChannels : public ::testing::TestWithParam<int32_t> {};
|
||||
TEST_P(testChannels, base) {
|
||||
river::initString(configurationRiver);
|
||||
std11::shared_ptr<river::Manager> manager;
|
||||
manager = river::Manager::create("testApplication");
|
||||
std11::shared_ptr<testOutCallbackType> process = std11::make_shared<testOutCallbackType>(manager, 48000, GetParam(), audio::format_int16);
|
||||
process->run();
|
||||
process.reset();
|
||||
usleep(500000);
|
||||
river::unInit();
|
||||
}
|
||||
INSTANTIATE_TEST_CASE_P(InstantiationName,
|
||||
testChannels,
|
||||
@@ -173,6 +180,7 @@ namespace river_test_format {
|
||||
|
||||
|
||||
TEST(TestALL, testChannelsFormatResampling) {
|
||||
river::initString(configurationRiver);
|
||||
std11::shared_ptr<river::Manager> manager;
|
||||
manager = river::Manager::create("testApplication");
|
||||
APPL_INFO("test convert flaot to output (callback mode)");
|
||||
@@ -209,6 +217,7 @@ namespace river_test_format {
|
||||
}
|
||||
}
|
||||
}
|
||||
river::unInit();
|
||||
}
|
||||
|
||||
|
||||
|
@@ -100,13 +100,17 @@ namespace river_test_muxer {
|
||||
}
|
||||
};
|
||||
|
||||
static const std::string configurationRiver = "";
|
||||
|
||||
TEST(TestMuxer, testMuxing) {
|
||||
river::initString(configurationRiver);
|
||||
std11::shared_ptr<river::Manager> manager;
|
||||
manager = river::Manager::create("testApplication");
|
||||
std11::shared_ptr<TestClass> process = std11::make_shared<TestClass>(manager);
|
||||
process->run();
|
||||
process.reset();
|
||||
usleep(500000);
|
||||
river::unInit();
|
||||
}
|
||||
};
|
||||
|
||||
|
@@ -69,7 +69,10 @@ namespace river_test_playback_callback {
|
||||
}
|
||||
};
|
||||
|
||||
static const std::string configurationRiver = "";
|
||||
|
||||
TEST(TestALL, testOutputCallBack) {
|
||||
river::initString(configurationRiver);
|
||||
std11::shared_ptr<river::Manager> manager;
|
||||
manager = river::Manager::create("testApplication");
|
||||
|
||||
@@ -78,9 +81,11 @@ namespace river_test_playback_callback {
|
||||
process->run();
|
||||
process.reset();
|
||||
usleep(500000);
|
||||
river::unInit();
|
||||
}
|
||||
|
||||
TEST(TestALL, testOutputCallBackPulse) {
|
||||
river::initString(configurationRiver);
|
||||
std11::shared_ptr<river::Manager> manager;
|
||||
manager = river::Manager::create("testApplication");
|
||||
|
||||
@@ -89,9 +94,11 @@ namespace river_test_playback_callback {
|
||||
process->run();
|
||||
process.reset();
|
||||
usleep(500000);
|
||||
river::unInit();
|
||||
}
|
||||
|
||||
TEST(TestALL, testOutputCallBackJack) {
|
||||
river::initString(configurationRiver);
|
||||
std11::shared_ptr<river::Manager> manager;
|
||||
manager = river::Manager::create("testApplication");
|
||||
|
||||
@@ -100,6 +107,7 @@ namespace river_test_playback_callback {
|
||||
process->run();
|
||||
process.reset();
|
||||
usleep(500000);
|
||||
river::unInit();
|
||||
}
|
||||
|
||||
|
||||
|
@@ -11,6 +11,8 @@
|
||||
#define __class__ "test_playback_write"
|
||||
|
||||
namespace river_test_playback_write {
|
||||
static const std::string configurationRiver = "";
|
||||
|
||||
class testOutWrite {
|
||||
private:
|
||||
std::vector<audio::channel> m_channelMap;
|
||||
@@ -67,6 +69,7 @@ namespace river_test_playback_write {
|
||||
};
|
||||
|
||||
TEST(TestALL, testOutputWrite) {
|
||||
river::initString(configurationRiver);
|
||||
std11::shared_ptr<river::Manager> manager;
|
||||
manager = river::Manager::create("testApplication");
|
||||
|
||||
@@ -75,6 +78,7 @@ namespace river_test_playback_write {
|
||||
process->run();
|
||||
process.reset();
|
||||
usleep(500000);
|
||||
river::unInit();
|
||||
}
|
||||
|
||||
class testOutWriteCallback {
|
||||
|
@@ -13,6 +13,8 @@
|
||||
#define __class__ "test_record_callback"
|
||||
|
||||
namespace river_test_record_callback {
|
||||
static const std::string configurationRiver = "";
|
||||
|
||||
class testInCallback {
|
||||
private:
|
||||
std11::shared_ptr<river::Manager> m_manager;
|
||||
@@ -64,6 +66,7 @@ namespace river_test_record_callback {
|
||||
};
|
||||
|
||||
TEST(TestALL, testInputCallBack) {
|
||||
river::initString(configurationRiver);
|
||||
std11::shared_ptr<river::Manager> manager;
|
||||
manager = river::Manager::create("testApplication");
|
||||
APPL_INFO("test input (callback mode)");
|
||||
@@ -71,6 +74,7 @@ namespace river_test_record_callback {
|
||||
process->run();
|
||||
process.reset();
|
||||
usleep(500000);
|
||||
river::unInit();
|
||||
}
|
||||
|
||||
};
|
||||
|
@@ -11,6 +11,7 @@
|
||||
#define __class__ "test_volume"
|
||||
|
||||
namespace river_test_volume {
|
||||
static const std::string configurationRiver = "";
|
||||
|
||||
class testCallbackVolume {
|
||||
private:
|
||||
@@ -101,12 +102,14 @@ namespace river_test_volume {
|
||||
};
|
||||
|
||||
TEST(TestALL, testVolume) {
|
||||
river::initString(configurationRiver);
|
||||
std11::shared_ptr<river::Manager> manager;
|
||||
manager = river::Manager::create("testApplication");
|
||||
std11::shared_ptr<testCallbackVolume> process = std11::make_shared<testCallbackVolume>(manager);
|
||||
process->run();
|
||||
process.reset();
|
||||
usleep(500000);
|
||||
river::unInit();
|
||||
}
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user