From a0d81df21e2e9c3712856ddd6b1f2401403bb615 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Mon, 22 Jun 2020 13:14:37 +0200 Subject: [PATCH] UnitTests: Set a CookiesJar in FakeQNAM --- test/syncenginetestutils.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.30.2