This commit introduced tests for BackendModule/FrontendModule classes
Signed-off-by: Ivan Vagin <ivan.vagin@samsung.com>
--- /dev/null
+#include "module/BackendModule.h"
+#include "PluginType.h"
+
+#include "gtest/gtest.h"
+
+using namespace nncc::contrib::module;
+using namespace nncc::contrib::plugin;
+
+TEST(CONTRIB_NNC, BackendModule)
+{
+ AbstractModule *backendModule1 = &BackendModule::getInstance();
+ ASSERT_EQ(backendModule1->getModuleType(), PluginType::typeBackEnd);
+ AbstractModule *backendModule2 = &BackendModule::getInstance();
+ ASSERT_EQ(backendModule1, backendModule2);
+}
--- /dev/null
+#include "module/FrontendModule.h"
+#include "PluginType.h"
+
+#include "gtest/gtest.h"
+
+using namespace nncc::contrib::module;
+using namespace nncc::contrib::plugin;
+
+TEST(CONTRIB_NNC, FrontendModule)
+{
+ AbstractModule *frontendModule1 = &FrontendModule::getInstance();
+ ASSERT_EQ(frontendModule1->getModuleType(), PluginType::typeFrontEnd);
+ AbstractModule *frontendModule2 = &FrontendModule::getInstance();
+ ASSERT_EQ(frontendModule1, frontendModule2);
+}