From: Hannah von Reth Date: Mon, 22 Jun 2020 11:14:37 +0000 (+0200) Subject: UnitTests: Set a CookiesJar in FakeQNAM X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~94 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a0d81df21e2e9c3712856ddd6b1f2401403bb615;p=nextcloud-desktop.git UnitTests: Set a CookiesJar in FakeQNAM --- diff --git a/test/syncenginetestutils.h b/test/syncenginetestutils.h index 14c30fc8a..223b3a433 100644 --- a/test/syncenginetestutils.h +++ b/test/syncenginetestutils.h @@ -22,6 +22,7 @@ #include #include +#include /* * TODO: In theory we should use QVERIFY instead of Q_ASSERT for testing, but this @@ -889,7 +890,11 @@ private: Override _override; public: - FakeQNAM(FileInfo initialRoot) : _remoteRootFileInfo{std::move(initialRoot)} { } + FakeQNAM(FileInfo initialRoot) + : _remoteRootFileInfo{std::move(initialRoot)} + { + setCookieJar(new OCC::CookieJar); + } FileInfo ¤tRemoteState() { return _remoteRootFileInfo; } FileInfo &uploadState() { return _uploadFileInfo; }