| 71 | } |
| 72 | |
| 73 | void |
| 74 | BaseTest::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 | |
| 103 | void |
| 104 | BaseTest::SetUp() |
nothing calls this directly
no test coverage detected