aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/gtest/gtestresult.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/autotest/gtest/gtestresult.cpp')
-rw-r--r--src/plugins/autotest/gtest/gtestresult.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/autotest/gtest/gtestresult.cpp b/src/plugins/autotest/gtest/gtestresult.cpp
index b2f3aae67b..9f909a9de2 100644
--- a/src/plugins/autotest/gtest/gtestresult.cpp
+++ b/src/plugins/autotest/gtest/gtestresult.cpp
@@ -28,7 +28,7 @@
#include "../testframeworkmanager.h"
#include "../testtreeitem.h"
-#include <coreplugin/id.h>
+#include <utils/id.h>
#include <QRegularExpression>
@@ -95,8 +95,10 @@ static QString normalizeTestName(const QString &testname)
const TestTreeItem *GTestResult::findTestTreeItem() const
{
- auto id = Core::Id(Constants::FRAMEWORK_PREFIX).withSuffix(GTest::Constants::FRAMEWORK_NAME);
- const TestTreeItem *rootNode = TestFrameworkManager::instance()->rootNodeForTestFramework(id);
+ auto id = Utils::Id(Constants::FRAMEWORK_PREFIX).withSuffix(GTest::Constants::FRAMEWORK_NAME);
+ ITestFramework *framework = TestFrameworkManager::frameworkForId(id);
+ QTC_ASSERT(framework, return nullptr);
+ const TestTreeItem *rootNode = framework->rootNode();
if (!rootNode)
return nullptr;