mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Improve remote sync tests
This commit is contained in:
@@ -19,15 +19,15 @@
|
||||
|
||||
#include "MockRemoteProcess.h"
|
||||
|
||||
MockRemoteProcess::MockRemoteProcess(QObject* parent, const QString& dbPath)
|
||||
MockRemoteProcess::MockRemoteProcess(QObject* parent, QString dbPath)
|
||||
: RemoteProcess(parent)
|
||||
, m_dbPath(dbPath)
|
||||
, m_dbPath(std::move(dbPath))
|
||||
{
|
||||
}
|
||||
|
||||
void MockRemoteProcess::start(const QString&)
|
||||
{
|
||||
QFile ::copy(m_dbPath, m_tempFileLocation);
|
||||
QFile::copy(m_dbPath, m_tempFileLocation);
|
||||
}
|
||||
|
||||
qint64 MockRemoteProcess::write(const QString& data)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
class MockRemoteProcess : public RemoteProcess
|
||||
{
|
||||
public:
|
||||
explicit MockRemoteProcess(QObject* parent, const QString& dbPath);
|
||||
explicit MockRemoteProcess(QObject* parent, QString dbPath);
|
||||
~MockRemoteProcess() override = default;
|
||||
|
||||
void start(const QString& program) override;
|
||||
|
||||
Reference in New Issue
Block a user