2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2021 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2021-09-16 17:19:56 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "googletest.h"
|
|
|
|
|
|
|
|
|
|
#include <projectstorage/qmldocumentparserinterface.h>
|
|
|
|
|
|
|
|
|
|
class QmlDocumentParserMock : public QmlDesigner::QmlDocumentParserInterface
|
|
|
|
|
{
|
|
|
|
|
public:
|
2022-07-12 15:01:24 +02:00
|
|
|
MOCK_METHOD(QmlDesigner::Storage::Synchronization::Type,
|
2021-09-20 14:12:57 +02:00
|
|
|
parse,
|
2022-06-13 13:23:12 +02:00
|
|
|
(const QString &sourceContent,
|
2022-07-12 15:01:24 +02:00
|
|
|
QmlDesigner::Storage::Synchronization::Imports &imports,
|
2022-06-13 13:23:12 +02:00
|
|
|
QmlDesigner::SourceId sourceId,
|
|
|
|
|
Utils::SmallStringView directoryPath),
|
2021-09-20 14:12:57 +02:00
|
|
|
(override));
|
2021-09-16 17:19:56 +02:00
|
|
|
};
|