|
|
@@ -22,6 +22,7 @@
|
|
|
#include <QtTest>
|
|
|
#include <memory>
|
|
|
|
|
|
+#include <cookiejar.h>
|
|
|
|
|
|
/*
|
|
|
* 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; }
|
|
|
|