aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/codeassist/codeassist_test.h
blob: 3bf734aadfbf5e1a8c68c938d6ed7805bba2efb5 (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+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#ifdef WITH_TESTS

#include <QObject>

namespace Core { class IEditor; }
namespace TextEditor { class BaseTextEditor; }

namespace TextEditor::Internal {

class TestProvider;

class CodeAssistTests : public QObject
{
    Q_OBJECT
public:

private slots:
    void initTestCase();

    void testFollowSymbolBigFile();

    void cleanupTestCase();

private:
    TextEditor::BaseTextEditor *m_editor = nullptr;
    QList<Core::IEditor *> m_editorsToClose;
    TestProvider *m_testProvider = nullptr;
};

} // namespace TextEditor::Internal

#endif