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

Method registerTestPlugins

Tests/BaseTest.cpp:73–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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