MCPcopy Create free account
hub / github.com/MrKepzie/Natron / registerTestPlugins

Method registerTestPlugins

Tests/BaseTest.cpp:70–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void
71BaseTest::registerTestPlugins()
72{
73 _allTestPluginIDs.clear();
74
75 _generatorPluginID = QString::fromUtf8(PLUGINID_OFX_SENOISE);
76 _allTestPluginIDs.push_back(_generatorPluginID);
77
78 _readOIIOPluginID = QString::fromUtf8(PLUGINID_OFX_READOIIO);
79 _allTestPluginIDs.push_back(_readOIIOPluginID);
80
81 _writeOIIOPluginID = QString::fromUtf8(PLUGINID_OFX_WRITEOIIO);
82 _allTestPluginIDs.push_back(_writeOIIOPluginID);
83
84 for (unsigned int i = 0; i < _allTestPluginIDs.size(); ++i) {
85 ///make sure the generic test plugin is present
86 LibraryBinary* bin = NULL;
87 try {
88 Plugin* p = appPTR->getPluginBinary(_allTestPluginIDs[i], -1, -1, false);
89 if (p) {
90 bin = p->getLibraryBinary();
91 }
92 } catch (const std::exception & e) {
93 std::cout << e.what() << std::endl;
94 }
95
96 ASSERT_TRUE(bin != NULL);
97 }
98}
99
100void
101BaseTest::SetUp()

Callers

nothing calls this directly

Calls 5

getPluginBinaryMethod · 0.80
getLibraryBinaryMethod · 0.80
clearMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected