31 ASSERT_EQ(manager, manager->getInstance());
37 QString libraryPath(std::filesystem::current_path().
string().c_str());
38 libraryPath +=
"/.libs/fakePlugin.so";
40 ASSERT_EQ(
typeid(testobject).name(),
typeid(manager->load(libraryPath)).name());
48 QString libraryPath(std::filesystem::current_path().
string().c_str());
49 libraryPath +=
"/.libs/fakePlugin.so";
50 plugin = manager->
load(libraryPath);
51 manager->unload(plugin);
62 QString libraryPath(std::filesystem::current_path().
string().c_str());
63 libraryPath +=
"/.libs/fakePlugin.so";
64 for (
int i = 0; i < 5; ++i)
66 plugins[i] = manager->
load(libraryPath);
82 QString libraryPath(std::filesystem::current_path().
string().c_str());
83 libraryPath +=
"/.libs/fakePlugin.so";
84 object = manager->
load(libraryPath);
85 EXPECT_EQ(libraryPath.toStdString(), object->getLibrary());