nextcloud-desktop/test/testhelper.h
Claudio Cambra 7ba6969e65
Moved all server mocking code for share model test to independent ShareTestUtils file
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2022-10-31 18:06:10 +01:00

23 lines
483 B
C++

#ifndef TESTHELPER_H
#define TESTHELPER_H
#include "gui/folder.h"
#include "creds/httpcredentials.h"
class HttpCredentialsTest : public OCC::HttpCredentials
{
public:
HttpCredentialsTest(const QString& user, const QString& password)
: HttpCredentials(user, password)
{}
void askFromUser() override {
}
};
OCC::FolderDefinition folderDefinition(const QString &path);
const QByteArray jsonValueToOccReply(const QJsonValue &jsonValue);
#endif // TESTHELPER_H