2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2021 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2021-07-29 11:19:02 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "googletest.h"
|
|
|
|
|
|
2021-08-03 17:13:29 +02:00
|
|
|
#include <projectstorage/filestatus.h>
|
2021-07-29 11:19:02 +02:00
|
|
|
#include <projectstorage/filesysteminterface.h>
|
|
|
|
|
|
|
|
|
|
class FileSystemMock : public QmlDesigner::FileSystemInterface
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
MOCK_METHOD(QmlDesigner::SourceIds,
|
|
|
|
|
directoryEntries,
|
|
|
|
|
(const QString &directoryPath),
|
|
|
|
|
(const, override));
|
2022-09-06 15:13:29 +02:00
|
|
|
MOCK_METHOD(QStringList, qmlFileNames, (const QString &directoryPath), (const, override));
|
2021-08-03 17:13:29 +02:00
|
|
|
MOCK_METHOD(long long, lastModified, (QmlDesigner::SourceId sourceId), (const, override));
|
|
|
|
|
MOCK_METHOD(QmlDesigner::FileStatus, fileStatus, (QmlDesigner::SourceId sourceId), (const, override));
|
|
|
|
|
MOCK_METHOD(void, remove, (const QmlDesigner::SourceIds &sourceIds), (override));
|
2021-09-16 17:19:56 +02:00
|
|
|
MOCK_METHOD(QString, contentAsQString, (const QString &filePath), (const, override));
|
2021-07-29 11:19:02 +02:00
|
|
|
};
|