Commit e544a7b3 authored by Benjamin Heisch's avatar Benjamin Heisch
Browse files

Changed Name from XPlug to APAL because XPlug... sounds kind of strange and...

Changed Name from XPlug to APAL because XPlug... sounds kind of strange and APAL has a better fitting meaning.
parent 3e50f1ae
Pipeline #19424 passed with stages
in 6 minutes and 9 seconds
......@@ -32,8 +32,8 @@ if (NOT WIN32)
else()
endif(NOT WIN32)
target_link_libraries(unit_tests XPlug ${ADD_LIBS})
add_test(NAME xplug_unit_tests COMMAND unit_tests)
target_link_libraries(unit_tests APAL ${ADD_LIBS})
add_test(NAME APAL_unit_tests COMMAND unit_tests)
#add_dependencies(unit_tests SymbolExportLib)#Add Dependency, so that the exportlib is build before the testlib
......
......@@ -2,7 +2,7 @@
#include "CatchTools.hpp"
#include "base/PluginBases.hpp"
#include <GlobalData.hpp>
using namespace XPlug;
using namespace APAL;
class SimpleExamplePlugin : public LazyPlugin
{
public:
......@@ -12,7 +12,7 @@ public:
REGISTER_PLUGIN(SimpleExamplePlugin);
using namespace XPlug;
using namespace APAL;
TEST_CASE("Registration of derived Plugins")
{
REQUIRE_MESSAGE(GlobalData().getNumberOfRegisteredPlugins() >= 1,
......
......@@ -3,7 +3,7 @@
#include <base/FeatureComponents.hpp>
#include <base/PortComponents.hpp>
#include <base/Ports.hpp>
using namespace XPlug;
using namespace APAL;
TEST_CASE("Test IFeatureInterface Methods")
{
DynamicFeatureComponent comp{ { Feature::MidiInput } };
......
#include "CatchTools.hpp"
#include "interfaces/InterfaceTestMethods.hpp"
#include <base/InfoComponents.hpp>
using namespace XPlug;
using namespace APAL;
TEST_CASE("Test InfoComponent Methods")
{
StaticInfoComponent comp("pluginName",
......
#include "CatchTools.hpp"
#include "interfaces/InterfaceTestMethods.hpp"
#include <base/PluginBases.hpp>
using namespace XPlug;
using namespace APAL;
class LazyPluginTestClass : public LazyPlugin
{
public:
......
......@@ -2,7 +2,7 @@
#include "interfaces/InterfaceTestMethods.hpp"
#include <base/PortComponents.hpp>
#include <base/Ports.hpp>
using namespace XPlug;
using namespace APAL;
TEST_CASE("Test DynamicPortComponent")
{
......
#include "CatchTools.hpp"
#include "interfaces/InterfaceTestMethods.hpp"
#include <base/Ports.hpp>
using namespace XPlug;
using namespace APAL;
// function to compare array elements
char
......
......@@ -3,11 +3,11 @@
#include "interfaces/IFeatureComponent.hpp"
#include "interfaces/Ports/IAudioPort.hpp"
#include "interfaces/Ports/IMidiPort.hpp"
using namespace XPlug;
using namespace APAL;
#define LAST_FEATURE Feature::MidiOutput
void
testIFeatureComponent(XPlug::IFeatureComponent* featComp)
testIFeatureComponent(APAL::IFeatureComponent* featComp)
{
// Just test, that no exception is thrown
for (size_t i = 0; i <= static_cast<size_t>(LAST_FEATURE) + 1; i++) {
......@@ -24,7 +24,7 @@ testIFeatureComponent(XPlug::IFeatureComponent* featComp)
}
void
testIInfoComponent(XPlug::IInfoComponent* infoComp)
testIInfoComponent(APAL::IInfoComponent* infoComp)
{
REQUIRE_MESSAGE(!infoComp->getCreatorName().empty(), "creator name is empty");
REQUIRE_MESSAGE(!infoComp->getCreatorURL().empty(), "creator url is empty");
......@@ -37,7 +37,7 @@ testIInfoComponent(XPlug::IInfoComponent* infoComp)
}
void
testIPort(XPlug::IPort* port)
testIPort(APAL::IPort* port)
{
REQUIRE_MESSAGE(port != nullptr,
"Error, dont get nullptr, if size says there should be sth");
......@@ -62,19 +62,19 @@ testIPort(XPlug::IPort* port)
}
}
void
testIAudioPort(XPlug::IAudioPort* aPort)
testIAudioPort(APAL::IAudioPort* aPort)
{
REQUIRE_MESSAGE(aPort != nullptr, "Null Audioport is definitly wrong");
}
void
testIMidiPort(XPlug::IMidiPort* mPort)
testIMidiPort(APAL::IMidiPort* mPort)
{
REQUIRE_MESSAGE(mPort != nullptr, "Null Midiport is definitly wrong");
// MidiMessage x = { 0x1,0x2,0x3 };
}
void
testIPortComponent(XPlug::IPortComponent* portComp)
testIPortComponent(APAL::IPortComponent* portComp)
{
// INFO("Error, there should nothing above an index size.");
// REQUIRE_THROWS(portComp->at(portComp->size()) == nullptr);
......@@ -84,7 +84,7 @@ testIPortComponent(XPlug::IPortComponent* portComp)
}
void
testIPlugin(XPlug::IPlugin* plug)
testIPlugin(APAL::IPlugin* plug)
{
REQUIRE_NOTHROW(plug->init());
REQUIRE_NOTHROW(plug->activate());
......
......@@ -16,48 +16,48 @@
* @param plug IPlugin implementation, which should be tested.
*/
void
testIPlugin(XPlug::IPlugin* plug);
testIPlugin(APAL::IPlugin* plug);
/**
* @brief Tests the IInfoComponent-interface
* @param infoComp Interface to test
*/
void
testIInfoComponent(XPlug::IInfoComponent* infoComp);
testIInfoComponent(APAL::IInfoComponent* infoComp);
/**
* @brief Tests the IFeatureComponent-interface
* @param featComp Interface to test
*/
void
testIFeatureComponent(XPlug::IFeatureComponent* featComp);
testIFeatureComponent(APAL::IFeatureComponent* featComp);
/**
* @brief Tests the IPortComponent-interface
* @param portComp Interface to test
*/
void
testIPortComponent(XPlug::IPortComponent* portComp);
testIPortComponent(APAL::IPortComponent* portComp);
/**
* @brief Tests an IPort for its Interfacemethods.
* @param port Implementation to test.
*/
void
testIPort(XPlug::IPort* port);
testIPort(APAL::IPort* port);
/**
* @brief Tests an IAudioPort for its Interfacemethods.
* @param aPort Implementation to test.
*/
void
testIAudioPort(XPlug::IAudioPort* aPort);
testIAudioPort(APAL::IAudioPort* aPort);
/**
* @brief Tests an IMidiPort for its Interfacemethods.
* @param mPort Implementation to test.
*/
void
testIMidiPort(XPlug::IMidiPort* mPort);
testIMidiPort(APAL::IMidiPort* mPort);
#endif //! INTERFACE_TEST_METHODS_HPP
\ No newline at end of file
......@@ -13,7 +13,7 @@
**/
#include "CatchTools.hpp"
#include "tools/LibLoading.hpp"
using namespace XPlug;
using namespace APAL;
#ifdef _WIN32
#define SYMBOL_EXPORT_TEST_LIB "simple_symbol_export"
#else
......
......@@ -5,7 +5,7 @@
#include <initializer_list>
#include <interfaces/IPlugin.hpp>
#include <tools/PortHandling.hpp>
using namespace XPlug;
using namespace APAL;
class TestPortHandlingPlugin : public IPlugin
{
......
#include "CatchTools.hpp"
#include <tools/StringTools.hpp>
using namespace XPlug;
using namespace APAL;
TEST_CASE("getFileName Test")
{
std::string extPath = "C://test/file/path.ext";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment