aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/remotelinux/filesystemaccess_test.h
blob: 621428447619181ec1c2e2c3306d256af0b3cd07 (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
38
39
40
41
// 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

#pragma once

#include <projectexplorer/devicesupport/idevicefactory.h>

namespace RemoteLinux {
namespace Internal {

class TestLinuxDeviceFactory final : public ProjectExplorer::IDeviceFactory
{
public:
    TestLinuxDeviceFactory();
};

class FileSystemAccessTest : public QObject
{
    Q_OBJECT

private slots:
    void initTestCase();

    void testCreateRemoteFile_data();
    void testCreateRemoteFile();
    void testDirStatus();
    void testBytesAvailable();
    void testFileActions();
    void testFileTransfer_data();
    void testFileTransfer();

    void cleanupTestCase();

private:
    TestLinuxDeviceFactory m_testLinuxDeviceFactory;
    bool m_skippedAtWhole = false;
    ProjectExplorer::IDeviceConstPtr m_device;
};

} // Internal
} // RemoteLinux