summaryrefslogtreecommitdiff
path: root/src/plugins/autotest/quick
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/autotest/quick')
-rw-r--r--src/plugins/autotest/quick/quicktestparser.cpp2
-rw-r--r--src/plugins/autotest/quick/quicktestparser.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/autotest/quick/quicktestparser.cpp b/src/plugins/autotest/quick/quicktestparser.cpp
index 87dcc30122..7c0074ff73 100644
--- a/src/plugins/autotest/quick/quicktestparser.cpp
+++ b/src/plugins/autotest/quick/quicktestparser.cpp
@@ -107,7 +107,7 @@ static QString quickTestName(const CPlusPlus::Document::Ptr &doc)
const QByteArray name = macro.macro().name();
if (QuickTestUtils::isQuickTestMacro(name)) {
CPlusPlus::Document::Block arg = macro.arguments().at(0);
- return QLatin1String(TestUtils::getFileContent(doc->fileName())
+ return QLatin1String(CppParser::getFileContent(doc->fileName())
.mid(arg.bytesBegin(), arg.bytesEnd() - arg.bytesBegin()));
}
}
diff --git a/src/plugins/autotest/quick/quicktestparser.h b/src/plugins/autotest/quick/quicktestparser.h
index 1e968c743e..76ace6e435 100644
--- a/src/plugins/autotest/quick/quicktestparser.h
+++ b/src/plugins/autotest/quick/quicktestparser.h
@@ -27,6 +27,8 @@
#include "../itestparser.h"
+#include <qmljs/qmljsdocument.h>
+
namespace Autotest {
namespace Internal {