Commit e10a8eed authored by aviau's avatar aviau Committed by Edric Milaret

Removed unused test files

Change-Id: Ie7520115bdac4a4b26963872d3d64a61a8f0d32c
Tuleap: #350
parent 0cc44fa2
......@@ -4,20 +4,6 @@ include globals.mak
SOURCES=
if BUILD_TEST
TESTS_DIR=test
unittest:
@(cd test; make)
@echo ""
@echo "NOTICE: Unitary tests successfully build"
@echo "Go in the test directory to run them"
@echo ""
else
unittest:
@echo "Ring WARNING:"
@echo " -- You need the cppunit devel package to compile the unitary tests."
endif
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src ringtones man $(TESTS_DIR) doc bin
......
......@@ -638,7 +638,6 @@ AC_CONFIG_FILES([Makefile \
src/media/video/test/Makefile \
src/security/Makefile \
src/upnp/Makefile \
test/Makefile \
ringtones/Makefile \
man/Makefile \
doc/Makefile \
......
test
cppunitresults.xml
im:testfile1.txt
im:testfile2.txt
include ../globals.mak
TESTS_ENVIRONMENT = CODECS_PATH="$(top_builddir)/src/audio/codecs"
check_PROGRAMS = test
TESTS = run_tests.sh
test_CXXFLAGS = -DWORKSPACE=\"$(top_srcdir)/test/\" @PTHREAD_CFLAGS@
test_LDADD = $(top_builddir)/src/libring.la \
$(top_builddir)/src/libring_la-logger.lo \
@CPPUNIT_LIBS@ @YAMLCPP_LIBS@ @PJPROJECT_LIBS@
if BUILD_INSTANT_MESSAGING
test_LDADD += @EXPAT_LIBS@
endif
EXTRA_DIST = dring-sample.yml history-sample.tpl tlsSample run_tests.sh
test_SOURCES = constants.h \
test_utils.h \
main.cpp \
accounttest.h \
accounttest.cpp \
audiocodectest.h \
audiocodectest.cpp \
audiolayertest.h \
audiolayertest.cpp \
configurationtest.h \
configurationtest.cpp \
historytest.h \
historytest.cpp \
numbercleanertest.h \
numbercleanertest.cpp \
siptest.h \
siptest.cpp \
sdptest.h \
sdptest.cpp \
ringbufferpooltest.h \
ringbufferpooltest.cpp \
resamplertest.h \
resamplertest.cpp \
hooktest.h \
hooktest.cpp \
audiobuffertest.h \
audiobuffertest.cpp \
iptest.h \
iptest.cpp
if BUILD_SDES
test_SOURCES+=sdesnegotiatortest.h \
sdesnegotiatortest.cpp
endif
if BUILD_INSTANT_MESSAGING
test_SOURCES+=instantmessagingtest.h \
instantmessagingtest.cpp
endif
if BUILD_TLS
test_SOURCES+=tlstest.h \
tlstest.cpp
endif
clean-local:
rm -rf cppunitresults.xml im:testfile1.txt im:testfile2.txt \
sample_echocancel_500ms_8kHz_16bit.raw
/*
* Copyright (C) 2004-2016 Savoir-faire Linux Inc.
*
* Author: Julien Bonjean <julien.bonjean@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <cppunit/extensions/HelperMacros.h>
#include <map>
#include "account.h"
#include "account_schema.h"
#include "accounttest.h"
#include "manager.h"
#include "configurationmanager_interface.h"
#include "logger.h"
namespace ring { namespace test {
void AccountTest::TestAddRemove()
{
RING_DBG("-------------------- %s --------------------\n", __PRETTY_FUNCTION__);
auto details = DRing::getAccountTemplate();
details[Conf::CONFIG_ACCOUNT_TYPE] = "SIP";
details[Conf::CONFIG_ACCOUNT_ENABLE] = "false";
details[Conf::CONFIG_LOCAL_INTERFACE] = "default";
details[Conf::CONFIG_LOCAL_PORT] = "5060";
auto accountId = Manager::instance().addAccount(details);
CPPUNIT_ASSERT(not accountId.empty());
CPPUNIT_ASSERT(Manager::instance().hasAccount(accountId));
Manager::instance().removeAccount(accountId);
CPPUNIT_ASSERT(!Manager::instance().hasAccount(accountId));
}
}} // namespace ring::test
/*
* Copyright (C) 2004-2016 Savoir-faire Linux Inc.
*
* Author: Julien Bonjean <julien.bonjean@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef ACCOUNTTEST_H_
#define ACCOUNTTEST_H_
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
namespace ring { namespace test {
class AccountTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(AccountTest);
CPPUNIT_TEST(TestAddRemove);
CPPUNIT_TEST_SUITE_END();
public:
void TestAddRemove();
};
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(AccountTest, "AccountTest");
CPPUNIT_TEST_SUITE_REGISTRATION(AccountTest);
}} // namespace ring::test
#endif /* ACCOUNTTEST_H_ */
/*
* Copyright (C) 2004-2016 Savoir-faire Linux Inc.
*
* Author: Adrien Beraud <adrienberaud@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <string>
#include "audiobuffertest.h"
#include "audio/audiobuffer.h"
#include "logger.h"
#include "test_utils.h"
namespace ring { namespace test {
void AudioBufferTest::testAudioBufferConstructors()
{
TITLE();
ring::AudioSample test_samples2[] = {10, 11, 12, 13, 14, 15, 16, 17};
AudioBuffer empty_buf(0, AudioFormat::MONO());
CPPUNIT_ASSERT(empty_buf.frames() == 0);
CPPUNIT_ASSERT(empty_buf.channels() == 1);
CPPUNIT_ASSERT(empty_buf.getChannel(0)->size() == 0);
AudioBuffer test_buf1(8, AudioFormat::STEREO());
CPPUNIT_ASSERT(test_buf1.frames() == 8);
CPPUNIT_ASSERT(test_buf1.channels() == 2);
CPPUNIT_ASSERT(test_buf1.getChannel(0)->size() == 8);
CPPUNIT_ASSERT(test_buf1.getChannel(1)->size() == 8);
CPPUNIT_ASSERT(test_buf1.getChannel(2) == NULL);
AudioBuffer test_buf3(test_samples2, 4, AudioFormat::STEREO());
CPPUNIT_ASSERT(test_buf3.frames() == 4);
CPPUNIT_ASSERT(test_buf3.channels() == 2);
CPPUNIT_ASSERT(test_buf3.getChannel(0)->size() == 4);
}
void AudioBufferTest::testAudioBufferMix()
{
TITLE();
ring::AudioSample test_samples1[] = {18, 19, 20, 21, 22, 23, 24, 25};
ring::AudioSample test_samples2[] = {10, 11, 12, 13, 14, 15, 16, 17, 18};
AudioBuffer test_buf1(test_samples1, 4, AudioFormat::STEREO());
CPPUNIT_ASSERT(test_buf1.channels() == 2);
test_buf1.setChannelNum(1);
CPPUNIT_ASSERT(test_buf1.channels() == 1);
test_buf1.setChannelNum(2);
CPPUNIT_ASSERT(test_buf1.channels() == 2);
CPPUNIT_ASSERT(test_buf1.getChannel(1)->size() == 4);
CPPUNIT_ASSERT((*test_buf1.getChannel(1))[0] == 0);
test_buf1.setChannelNum(1);
test_buf1.setChannelNum(2, true);
CPPUNIT_ASSERT((*test_buf1.getChannel(1))[0] == test_samples1[0]);
AudioBuffer test_buf2(0, AudioFormat::MONO());
test_buf2.deinterleave(test_samples2, 3, 3);
CPPUNIT_ASSERT((*test_buf2.getChannel(0))[2] == test_samples2[6]);
CPPUNIT_ASSERT((*test_buf2.getChannel(1))[1] == test_samples2[4]);
CPPUNIT_ASSERT((*test_buf2.getChannel(2))[0] == test_samples2[2]);
CPPUNIT_ASSERT(test_buf2.capacity() == 9);
ring::AudioSample *output = new ring::AudioSample[test_buf2.capacity()];
test_buf2.interleave(output);
CPPUNIT_ASSERT(std::equal(test_samples2, test_samples2 + sizeof test_samples2 / sizeof *test_samples2, output));
//CPPUNIT_ASSERT(std::equal(std::begin(test_samples2), std::end(test_samples2), std::begin(output))); C++11
test_buf1.mix(test_buf2);
CPPUNIT_ASSERT(test_buf1.channels() == 2);
CPPUNIT_ASSERT(test_buf1.frames() == 4);
CPPUNIT_ASSERT((*test_buf1.getChannel(0))[0] == test_samples1[0]+test_samples2[0]);
CPPUNIT_ASSERT((*test_buf1.getChannel(1))[0] == test_samples1[0]+test_samples2[1]);
}
AudioBufferTest::AudioBufferTest() : CppUnit::TestCase("Audio Buffer Tests") {}
}} // namespace ring::test
/*
* Copyright (C) 2004-2016 Savoir-faire Linux Inc.
*
* Author: Adrien Beraud <adrienberaud@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef AUDIOBUFFER_TEST_
#define AUDIOBUFFER_TEST_
// Cppunit import
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/TestCaller.h>
#include <cppunit/TestCase.h>
#include <cppunit/TestSuite.h>
/*
* @file audiobuffertest.cpp
* @brief Regroups unit tests related to an audio buffer.
*/
namespace ring { namespace test {
class AudioBufferTest : public CppUnit::TestCase {
/*
* Use cppunit library macros to add unit test the factory
*/
CPPUNIT_TEST_SUITE(AudioBufferTest);
CPPUNIT_TEST(testAudioBufferConstructors);
CPPUNIT_TEST(testAudioBufferMix);
CPPUNIT_TEST_SUITE_END();
public:
AudioBufferTest();
void testAudioBufferConstructors();
void testAudioBufferMix();
};
/* Register our test module */
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(AudioBufferTest, "AudioBufferTest");
CPPUNIT_TEST_SUITE_REGISTRATION(AudioBufferTest);
}} // namespace ring::test
#endif // AUDIOBUFFER_TEST_
/*
* Copyright (C) 2004-2016 Savoir-faire Linux Inc.
*
* Author: Tristan Matthews <tristan.matthews@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
/*
* ebail - 2015/02/18
* testCodecs unit test is based on audiocodecfactory
* we are not using it anymore
* we should make this unit test work with libav
* this test is disabled for the moment
* */
#if 0
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "audiocodectest.h"
#include "audio/codecs/audiocodecfactory.h"
#include "plugin_manager.h"
#include "test_utils.h"
#include "ring_types.h" // for AudioSample
#include <cmath>
#include <climits>
namespace ring { namespace test {
/*
* Detect the power of a signal for a given frequency.
* Adapted from:
* http://netwerkt.wordpress.com/2011/08/25/goertzel-filter/
*/
static double
goertzelFilter(AudioSample *samples, double freq, unsigned N, double sample_rate)
{
double s_prev = 0.0;
double s_prev2 = 0.0;
const double normalizedfreq = freq / sample_rate;
double coeff = 2 * cos(M_2_PI * normalizedfreq);
for (unsigned i = 0; i < N; i++) {
double s = samples[i] + coeff * s_prev - s_prev2;
s_prev2 = s_prev;
s_prev = s;
}
return s_prev2 * s_prev2 + s_prev * s_prev - coeff * s_prev * s_prev2;
}
void AudioCodecTest::testCodecs()
{
TITLE();
PluginManager pluginMgr;
AudioCodecFactory factory(pluginMgr);
const auto payloadTypes = factory.getCodecList();
std::vector<std::shared_ptr<AudioCodec>> codecs;
for (auto p : payloadTypes)
codecs.push_back(factory.getCodec(p));
std::vector<std::vector<AudioSample>> sine = {};
std::vector<std::vector<AudioSample>> pcm;
unsigned sampleRate = 0;
double referencePower = 0.0;
for (auto c : codecs) {
// generate the sine tone if rate has changed
if (sampleRate != c->getCurrentClockRate()) {
sampleRate = c->getCurrentClockRate();
const unsigned nbSamples = sampleRate * 0.02; // 20 ms worth of samples
sine = {std::vector<AudioSample>(nbSamples)};
pcm = {std::vector<AudioSample>(nbSamples)};
const float theta = M_2_PI * frequency_ / sampleRate;
for (unsigned i = 0; i < nbSamples; ++i) {
sine[0][i] = SHRT_MAX * sin(theta * i);
sine[0][i] >>= 3; /* attenuate it a bit */
}
/* Store the raw signal's power detected at 440 Hz, this is much cheaper
* than an FFT */
referencePower = goertzelFilter(sine[0].data(), frequency_, sine[0].size(), sampleRate);
}
std::vector<uint8_t> data(RAW_BUFFER_SIZE);
const size_t encodedBytes = c->encode(sine, data.data(), sine[0].size());
unsigned decoded = c->decode(pcm, data.data(), encodedBytes);
CPPUNIT_ASSERT(decoded == sine[0].size());
const auto decodedPower = goertzelFilter(pcm[0].data(), frequency_, pcm[0].size(), sampleRate);
const auto decodedRatio = decodedPower / referencePower;
CPPUNIT_ASSERT(decodedRatio > 0.0);
}
}
}} // namespace ring::test
#endif
/*
* Copyright (C) 2004-2016 Savoir-faire Linux Inc.
*
* Author: Tristan Matthews <tristan.matthews@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
/*
* @file audiocodectest.h
* @brief For every available audio codec, encode a buffer, decode it,
* and analyze the signal to ensure that it's similar to what was
* encoded.
*/
#ifndef AUDIO_CODEC_TEST_
#define AUDIO_CODEC_TEST_
// Cppunit import
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/TestCaller.h>
#include <cppunit/TestCase.h>
#include <cppunit/TestSuite.h>
namespace ring { namespace test {
class AudioCodecTest: public CppUnit::TestFixture {
/*
* Use cppunit library macros to add unit test the factory
*/
CPPUNIT_TEST_SUITE(AudioCodecTest);
/*
* ebail - 2015/02/18
* testCodecs unit test is based on audiocodecfactory
* we are not using it anymore
* we should make this unit test work with libav
* this test is disabled for the moment
* */
//CPPUNIT_TEST(testCodecs);
CPPUNIT_TEST_SUITE_END();
static const short frequency_ = 440;
public:
void testCodecs();
};
/* Register our test module */
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(AudioCodecTest, "AudioCodecTest");
CPPUNIT_TEST_SUITE_REGISTRATION(AudioCodecTest);
}} // namespace ring::test
#endif // AUDIO_CODEC_TEST_
/*
* Copyright (C) 2004-2016 Savoir-faire Linux Inc.
*
* Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "audiolayertest.h"
#include "logger.h"
#include "manager.h"
#include "audio/alsa/alsalayer.h"
#include "audio/pulseaudio/pulselayer.h"
#include "test_utils.h"
#include <unistd.h>
namespace ring { namespace test {
AudioLayerTest::AudioLayerTest() : manager_(0), pulselayer_(0), layer_(0)
{}
void AudioLayerTest::testAudioLayerConfig()
{
TITLE();
CPPUNIT_ASSERT(Manager::instance().audioPreference.getAlsaSmplrate() == 44100);
// alsa preferences
CPPUNIT_ASSERT(Manager::instance().audioPreference.getAlsaCardin() == 0);
CPPUNIT_ASSERT(Manager::instance().audioPreference.getAlsaCardout() == 0);
CPPUNIT_ASSERT(Manager::instance().audioPreference.getAlsaCardring() == 0);
CPPUNIT_ASSERT(Manager::instance().audioPreference.getAlsaPlugin() == "default");
// pulseaudio preferences
CPPUNIT_ASSERT(Manager::instance().audioPreference.getPulseDevicePlayback() == "alsa_output.pci-0000_00_1b.0.analog-stereo");
CPPUNIT_ASSERT(Manager::instance().audioPreference.getPulseDeviceRecord() == "alsa_input.pci-0000_00_1b.0.analog-stereo");
CPPUNIT_ASSERT(Manager::instance().audioPreference.getPulseDeviceRingtone() == "alsa_output.pci-0000_00_1b.0.analog-stereo");
CPPUNIT_ASSERT(Manager::instance().audioPreference.getVolumemic() == 1.0);
CPPUNIT_ASSERT(Manager::instance().audioPreference.getVolumespkr() == 1.0);
// TODO: Fix tests
//CPPUNIT_ASSERT ( (int) Manager::instance().getAudioDriver()->getSampleRate() == sampling_rate);
}
void AudioLayerTest::testAudioLayerSwitch()
{
TITLE();
bool wasAlsa = dynamic_cast<AlsaLayer*>(Manager::instance().getAudioDriver().get()) != 0;
for (int i = 0; i < 2; i++) {
RING_DBG("iter - %i", i);
if (wasAlsa)
Manager::instance().setAudioManager(PULSEAUDIO_API_STR);
else
Manager::instance().setAudioManager(ALSA_API_STR);
if (wasAlsa)
CPPUNIT_ASSERT(dynamic_cast<PulseLayer*>(Manager::instance().getAudioDriver().get()));
else
CPPUNIT_ASSERT(dynamic_cast<AlsaLayer*>(Manager::instance().getAudioDriver().get()));
wasAlsa = dynamic_cast<AlsaLayer*>(Manager::instance().getAudioDriver().get()) != 0;
const struct timespec req = {0, 100000000};
nanosleep(&req, 0);
}
}
void AudioLayerTest::testPulseConnect()
{
TITLE();
if (dynamic_cast<AlsaLayer*>(Manager::instance().getAudioDriver().get())) {
Manager::instance().setAudioManager(PULSEAUDIO_API_STR);
const struct timespec req = {0, 100000000};
nanosleep(&req, 0);
}
pulselayer_ = dynamic_cast<PulseLayer*>(Manager::instance().getAudioDriver().get());
CPPUNIT_ASSERT(pulselayer_);
}
}} // namespace ring::test
/*
* Copyright (C) 2004-2016 Savoir-faire Linux Inc.
*
* Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
/*
* @file audiorecorderTest.cpp
* @brief Regroups unitary tests related to the plugin manager.
*/
#ifndef AUDIOLAYER_TEST_
#define AUDIOLAYER_TEST_
// Cppunit import
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/TestCaller.h>
#include <cppunit/TestCase.h>
#include <cppunit/TestSuite.h>
#include "noncopyable.h"
namespace ring {
class Manager;
class PulseLayer;
} // namespace ring
namespace ring { namespace test {
class AudioLayerTest: public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(AudioLayerTest);
CPPUNIT_TEST(testAudioLayerConfig);
//CPPUNIT_TEST(testPulseConnect);
//TODO: this test ends the test sequence when using on a alsa only system
//CPPUNIT_TEST(testAudioLayerSwitch);
CPPUNIT_TEST_SUITE_END();
public:
AudioLayerTest();
void testAudioLayerConfig();
void testPulseConnect();
void testAudioLayerSwitch();
private:
NON_COPYABLE(AudioLayerTest);
Manager* manager_;
PulseLayer* pulselayer_;
int layer_;
};
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(AudioLayerTest, "AudioLayerTest");
CPPUNIT_TEST_SUITE_REGISTRATION(AudioLayerTest);
}} // namespace ring::test
#endif // AUDIOLAYER_TEST_
/*
* Copyright (C) 2004-2016 Savoir-faire Linux Inc.