Warning, file /kdevelop/kdevelop/kdevplatform/language/backgroundparser/tests/testparsejob.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2012 Sven Brauch <svenbrauch@googlemail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "testparsejob.h" 0008 0009 #include <QTest> 0010 0011 TestParseJob::TestParseJob(const IndexedString& url, ILanguageSupport* languageSupport) 0012 : ParseJob(url, languageSupport) 0013 , duration_ms(0) 0014 { 0015 } 0016 0017 void TestParseJob::run(ThreadWeaver::JobPointer, ThreadWeaver::Thread*) 0018 { 0019 qDebug() << "Running parse job for" << document(); 0020 if (run_callback) { 0021 run_callback(document()); 0022 } 0023 if (duration_ms) { 0024 qDebug() << "waiting" << duration_ms << "ms"; 0025 QTest::qWait(duration_ms); 0026 } 0027 } 0028 0029 ControlFlowGraph* TestParseJob::controlFlowGraph() 0030 { 0031 return nullptr; 0032 } 0033 0034 DataAccessRepository* TestParseJob::dataAccessInformation() 0035 { 0036 return nullptr; 0037 } 0038 0039 #include "moc_testparsejob.cpp"