Revision 35:b700f37dc118 TestStaticData.cpp

View differences:

TestStaticData.cpp
40 40
#include "TestStaticData.h"
41 41

  
42 42
#include <vamp-hostsdk/Plugin.h>
43
#include <vamp-hostsdk/PluginLoader.h>
43 44
using namespace Vamp;
45
using namespace Vamp::HostExt;
44 46

  
45 47
#include <memory>
46 48
using namespace std;
......
56 58
Tester::TestRegistrar<TestValueRanges>
57 59
TestValueRanges::m_registrar("A3 Inappropriate value extents");
58 60

  
61
Tester::TestRegistrar<TestCategory>
62
TestCategory::m_registrar("A3 Missing category");
63

  
59 64
Test::Results
60 65
TestIdentifiers::test(string key, Options)
61 66
{
......
198 203
    return r;
199 204
}
200 205

  
206
Test::Results
207
TestCategory::test(string key, Options)
208
{
209
    PluginLoader::PluginCategoryHierarchy hierarchy =
210
        PluginLoader::getInstance()->getPluginCategory(key);
211
    
212
    Results r;
201 213

  
214
    if (hierarchy.empty()) {
215
        r.push_back(warning("Plugin category missing or cannot be loaded (no .cat file?)"));
216
    }
217

  
218
    return r;
219
}
220

  

Also available in: Unified diff