blob: 53b9ebc08d0ef3e774d0172c09a1c47ba1de3ab8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "quicktestframework.h"
#include "quicktestparser.h"
#include "quicktesttreeitem.h"
#include "../autotesttr.h"
#include <utils/shutdownguard.h>
namespace Autotest::Internal {
QuickTestFramework &theQuickTestFramework()
{
static Utils::GuardedObject<QuickTestFramework> framework;
return framework;
}
QuickTestFramework::QuickTestFramework()
{
setId(QuickTest::Constants::FRAMEWORK_ID);
setDisplayName(Tr::tr("Quick Test"));
setPriority(5);
}
ITestParser *QuickTestFramework::createTestParser()
{
return new QuickTestParser(this);
}
ITestTreeItem *QuickTestFramework::createRootNode()
{
return new QuickTestTreeItem(this, displayName(), {}, ITestTreeItem::Root);
}
} // namespace Autotest::Internal
|