forked from qt-creator/qt-creator
To improve testability external dependencies are now broken with an interface. It is a first step to test individual units without injection of source files. Task-number: QDS-7571 Change-Id: I4255c8668022f1097947e4ea5788f2a6b605365d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
18 lines
584 B
C++
18 lines
584 B
C++
// Copyright (C) 2020 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
|
|
|
|
#include <googletest.h>
|
|
|
|
#include <qmldesigner/designercore/include/abstractview.h>
|
|
|
|
class AbstractViewMock : public QmlDesigner::AbstractView
|
|
{
|
|
public:
|
|
AbstractViewMock(QmlDesigner::ExternalDependenciesInterface *externalDependencies = nullptr)
|
|
: QmlDesigner::AbstractView{*externalDependencies}
|
|
{}
|
|
MOCK_METHOD(void, nodeOrderChanged, (const QmlDesigner::NodeListProperty &listProperty), (override));
|
|
};
|