~ubuntu-branches/ubuntu/trusty/gwenview/trusty-proposed

« back to all changes in this revision

Viewing changes to tests/auto/semanticinfobackendtest.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-03-19 10:34:35 UTC
  • mto: This revision was merged to the branch mainline in revision 51.
  • Revision ID: package-import@ubuntu.com-20140319103435-r20hzcnkejmkcxp4
Tags: upstream-4.12.90
ImportĀ upstreamĀ versionĀ 4.12.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#ifdef GWENVIEW_SEMANTICINFO_BACKEND_FAKE
37
37
#include <lib/semanticinfo/fakesemanticinfobackend.h>
38
38
 
39
 
#elif defined(GWENVIEW_SEMANTICINFO_BACKEND_NEPOMUK)
40
 
#include <Nepomuk2/ResourceManager>
41
 
#include <lib/semanticinfo/nepomuksemanticinfobackend.h>
 
39
#elif defined(GWENVIEW_SEMANTICINFO_BACKEND_BALOO)
 
40
#include <lib/semanticinfo/baloosemanticinfobackend.h>
42
41
 
43
42
#else
44
43
#ifdef __GNUC__
65
64
 
66
65
void SemanticInfoBackEndTest::initTestCase()
67
66
{
68
 
#ifdef GWENVIEW_SEMANTICINFO_BACKEND_NEPOMUK
69
 
    if (Nepomuk2::ResourceManager::instance()->init() != 0) {
70
 
        QSKIP("This test needs Nepomuk", SkipAll);
71
 
    }
72
 
#endif
73
67
    qRegisterMetaType<KUrl>("KUrl");
74
68
    qRegisterMetaType<QString>("SemanticInfoTag");
75
69
}
78
72
{
79
73
#ifdef GWENVIEW_SEMANTICINFO_BACKEND_FAKE
80
74
    mBackEnd = new FakeSemanticInfoBackEnd(0, FakeSemanticInfoBackEnd::InitializeEmpty);
81
 
#elif defined(GWENVIEW_SEMANTICINFO_BACKEND_NEPOMUK)
82
 
    mBackEnd = new NepomukSemanticInfoBackEnd(0);
 
75
#elif defined(GWENVIEW_SEMANTICINFO_BACKEND_BALOO)
 
76
    mBackEnd = new BalooSemanticInfoBackend(0);
83
77
#endif
84
78
}
85
79