1 /****************************************************************************
2 **
3 ** Copyright (C) 2019 Jochen Seemann
4 **
5 ** This file is part of Qt Creator.
6 **
7 ** Commercial License Usage
8 ** Licensees holding valid commercial Qt licenses may use this file in
9 ** accordance with the commercial license agreement provided with the
10 ** Software or, alternatively, in accordance with the terms contained in
11 ** a written agreement between you and The Qt Company. For licensing terms
12 ** and conditions see https://www.qt.io/terms-conditions. For further
13 ** information use the contact form at https://www.qt.io/contact-us.
14 **
15 ** GNU General Public License Usage
16 ** Alternatively, this file may be used under the terms of the GNU
17 ** General Public License version 3 as published by the Free Software
18 ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
19 ** included in the packaging of this file. Please review the following
20 ** information to ensure the GNU General Public License requirements will
21 ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
22 **
23 ****************************************************************************/
24 
25 #pragma once
26 
27 #include "catchtreeitem.h"
28 #include "../itestparser.h"
29 
30 namespace Autotest {
31 namespace Internal {
32 
33 class CatchParseResult : public TestParseResult
34 {
35 public:
CatchParseResult(ITestFramework * framework)36     explicit CatchParseResult(ITestFramework *framework)
37         : TestParseResult(framework) {}
38     TestTreeItem *createTestTreeItem() const override;
39     CatchTreeItem::TestStates states;
40 };
41 
42 class CatchTestParser : public CppParser
43 {
44 public:
CatchTestParser(ITestFramework * framework)45     CatchTestParser(ITestFramework *framework)
46         : CppParser(framework) {}
47     bool processDocument(QFutureInterface<TestParseResultPtr> futureInterface,
48                          const Utils::FilePath &fileName) override;
49 };
50 
51 } // namespace Internal
52 } // namespace Autotest
53