Changeset View
Changeset View
Standalone View
Standalone View
language/backgroundparser/tests/test_backgroundparser.h
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 66 | public: | |||
---|---|---|---|---|---|
69 | void addJob(const JobPrototype& job); | 69 | void addJob(const JobPrototype& job); | ||
70 | 70 | | |||
71 | bool runJobs(int timeoutMS); | 71 | bool runJobs(int timeoutMS); | ||
72 | 72 | | |||
73 | void clear(); | 73 | void clear(); | ||
74 | 74 | | |||
75 | JobPrototype jobForUrl(const IndexedString& url); | 75 | JobPrototype jobForUrl(const IndexedString& url); | ||
76 | 76 | | |||
77 | private slots: | 77 | private Q_SLOTS: | ||
78 | void updateReady(const KDevelop::IndexedString& url, const KDevelop::ReferencedTopDUContext& context); | 78 | void updateReady(const KDevelop::IndexedString& url, const KDevelop::ReferencedTopDUContext& context); | ||
79 | void parseJobCreated(KDevelop::ParseJob*); | 79 | void parseJobCreated(KDevelop::ParseJob*); | ||
80 | 80 | | |||
81 | private: | 81 | private: | ||
82 | friend class TestBackgroundparser; | 82 | friend class TestBackgroundparser; | ||
83 | 83 | | |||
84 | QVector<JobPrototype> m_jobs; | 84 | QVector<JobPrototype> m_jobs; | ||
85 | QVector<IndexedString> m_finishedJobs; | 85 | QVector<IndexedString> m_finishedJobs; | ||
86 | QVector<IndexedString> m_createdJobs; | 86 | QVector<IndexedString> m_createdJobs; | ||
87 | }; | 87 | }; | ||
88 | 88 | | |||
89 | class TestBackgroundparser : public QObject | 89 | class TestBackgroundparser : public QObject | ||
90 | { | 90 | { | ||
91 | Q_OBJECT | 91 | Q_OBJECT | ||
92 | 92 | | |||
93 | private slots: | 93 | private Q_SLOTS: | ||
94 | void initTestCase(); | 94 | void initTestCase(); | ||
95 | void cleanupTestCase(); | 95 | void cleanupTestCase(); | ||
96 | void init(); | 96 | void init(); | ||
97 | 97 | | |||
98 | void testShutdownWithRunningJobs(); | 98 | void testShutdownWithRunningJobs(); | ||
99 | 99 | | |||
100 | void testParseOrdering_simple(); | 100 | void testParseOrdering_simple(); | ||
101 | void testParseOrdering_lockup(); | 101 | void testParseOrdering_lockup(); | ||
Show All 15 Lines |