Revision 17:ea8865f488a0 TestStaticData.cpp
| TestStaticData.cpp | ||
|---|---|---|
| 62 | 62 |
auto_ptr<Plugin> p(load(key)); |
| 63 | 63 |
|
| 64 | 64 |
Results r; |
| 65 |
r.push_back(testIdentifier(p->getIdentifier(), "plugin identifier"));
|
|
| 65 |
r.push_back(testIdentifier(p->getIdentifier(), "Plugin identifier"));
|
|
| 66 | 66 |
|
| 67 | 67 |
Plugin::ParameterList params = p->getParameterDescriptors(); |
| 68 | 68 |
for (int i = 0; i < (int)params.size(); ++i) {
|
| 69 |
r.push_back(testIdentifier(params[i].identifier, "parameter identifier"));
|
|
| 69 |
r.push_back(testIdentifier(params[i].identifier, "Parameter identifier"));
|
|
| 70 | 70 |
} |
| 71 | 71 |
|
| 72 | 72 |
Plugin::OutputList outputs = p->getOutputDescriptors(); |
| 73 | 73 |
for (int i = 0; i < (int)outputs.size(); ++i) {
|
| 74 |
r.push_back(testIdentifier(outputs[i].identifier, "output identifier"));
|
|
| 74 |
r.push_back(testIdentifier(outputs[i].identifier, "Output identifier"));
|
|
| 75 | 75 |
} |
| 76 | 76 |
|
| 77 | 77 |
return r; |
| ... | ... | |
| 100 | 100 |
|
| 101 | 101 |
Results r; |
| 102 | 102 |
|
| 103 |
r.push_back(testMandatory(p->getName(), "plugin name"));
|
|
| 104 |
r.push_back(testRecommended(p->getDescription(), "plugin description"));
|
|
| 105 |
r.push_back(testRecommended(p->getMaker(), "plugin maker"));
|
|
| 106 |
r.push_back(testRecommended(p->getCopyright(), "plugin copyright"));
|
|
| 103 |
r.push_back(testMandatory(p->getName(), "Plugin name"));
|
|
| 104 |
r.push_back(testRecommended(p->getDescription(), "Plugin description"));
|
|
| 105 |
r.push_back(testRecommended(p->getMaker(), "Plugin maker"));
|
|
| 106 |
r.push_back(testRecommended(p->getCopyright(), "Plugin copyright"));
|
|
| 107 | 107 |
|
| 108 | 108 |
Plugin::ParameterList params = p->getParameterDescriptors(); |
| 109 | 109 |
for (int i = 0; i < (int)params.size(); ++i) {
|
| 110 | 110 |
r.push_back(testMandatory |
| 111 | 111 |
(params[i].name, |
| 112 |
"plugin parameter \"" + params[i].identifier + "\" name"));
|
|
| 112 |
"Plugin parameter \"" + params[i].identifier + "\" name"));
|
|
| 113 | 113 |
r.push_back(testRecommended |
| 114 | 114 |
(params[i].description, |
| 115 |
"plugin parameter \"" + params[i].identifier + "\" description"));
|
|
| 115 |
"Plugin parameter \"" + params[i].identifier + "\" description"));
|
|
| 116 | 116 |
} |
| 117 | 117 |
|
| 118 | 118 |
Plugin::OutputList outputs = p->getOutputDescriptors(); |
| 119 | 119 |
for (int i = 0; i < (int)outputs.size(); ++i) {
|
| 120 | 120 |
r.push_back(testMandatory |
| 121 | 121 |
(outputs[i].name, |
| 122 |
"plugin output \"" + outputs[i].identifier + "\" name"));
|
|
| 122 |
"Plugin output \"" + outputs[i].identifier + "\" name"));
|
|
| 123 | 123 |
r.push_back(testRecommended |
| 124 | 124 |
(outputs[i].description, |
| 125 |
"plugin output \"" + outputs[i].identifier + "\" description"));
|
|
| 125 |
"Plugin output \"" + outputs[i].identifier + "\" description"));
|
|
| 126 | 126 |
} |
| 127 | 127 |
|
| 128 | 128 |
return r; |
| ... | ... | |
| 156 | 156 |
Plugin::ParameterList params = p->getParameterDescriptors(); |
| 157 | 157 |
for (int i = 0; i < (int)params.size(); ++i) {
|
| 158 | 158 |
Plugin::ParameterDescriptor &pd(params[i]); |
| 159 |
string pfx("plugin parameter \"" + pd.identifier + "\"");
|
|
| 159 |
string pfx("Plugin parameter \"" + pd.identifier + "\"");
|
|
| 160 | 160 |
float min = pd.minValue; |
| 161 | 161 |
float max = pd.maxValue; |
| 162 | 162 |
float deft = pd.defaultValue; |
Also available in: Unified diff