summaryrefslogtreecommitdiff
path: root/src/plugins/remotelinux/filesystemaccess_test.h
blob: 087eabbcad96fef90b7e86bf2be326a4ae098ab9 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <projectexplorer/devicesupport/idevicefactory.h>
#include <utils/filepath.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 testWorkingDirectory();
    void testDirStatus();
    void testBytesAvailable();
    void testFileActions();
    void testFileTransfer_data();
    void testFileTransfer();
    void testFileStreamer_data();
    void testFileStreamer();
    void testFileStreamerManager_data();
    void testFileStreamerManager();

    void cleanupTestCase();

private:
    TestLinuxDeviceFactory m_testLinuxDeviceFactory;
    bool m_skippedAtWhole = false;
    ProjectExplorer::IDeviceConstPtr m_device;
    Utils::FilePath m_localStreamerDir;
    Utils::FilePath m_remoteStreamerDir;
    Utils::FilePath m_localSourceDir;
    Utils::FilePath m_remoteSourceDir;
    Utils::FilePath m_localDestDir;
    Utils::FilePath m_remoteDestDir;
    Utils::FilePath m_localLocalDestDir;
    Utils::FilePath m_localRemoteDestDir;
    Utils::FilePath m_remoteLocalDestDir;
    Utils::FilePath m_remoteRemoteDestDir;
};

} // Internal
} // RemoteLinux