mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
fix ignored signals due to using old connect syntax
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
a7e10a166f
commit
69d2b06f3d
2 changed files with 4 additions and 4 deletions
|
@ -61,7 +61,7 @@ private slots:
|
||||||
{
|
{
|
||||||
FakeFolder fakeFolder{ FileInfo::A12_B12_C12_S12() };
|
FakeFolder fakeFolder{ FileInfo::A12_B12_C12_S12() };
|
||||||
fakeFolder.syncEngine().setIgnoreHiddenFiles(true);
|
fakeFolder.syncEngine().setIgnoreHiddenFiles(true);
|
||||||
QSignalSpy completeSpy(&fakeFolder.syncEngine(), &SyncEngine::itemCompleted);
|
QSignalSpy completeSpy(&fakeFolder.syncEngine(), &OCC::SyncEngine::itemCompleted);
|
||||||
auto size = 30 * 1000 * 1000;
|
auto size = 30 * 1000 * 1000;
|
||||||
fakeFolder.remoteModifier().insert("A/a0", size);
|
fakeFolder.remoteModifier().insert("A/a0", size);
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ private slots:
|
||||||
|
|
||||||
FakeFolder fakeFolder{FileInfo::A12_B12_C12_S12()};
|
FakeFolder fakeFolder{FileInfo::A12_B12_C12_S12()};
|
||||||
fakeFolder.syncEngine().setIgnoreHiddenFiles(true);
|
fakeFolder.syncEngine().setIgnoreHiddenFiles(true);
|
||||||
QSignalSpy completeSpy(&fakeFolder.syncEngine(), &SyncEngine::itemCompleted);
|
QSignalSpy completeSpy(&fakeFolder.syncEngine(), &OCC::SyncEngine::itemCompleted);
|
||||||
auto size = 3'500'000;
|
auto size = 3'500'000;
|
||||||
fakeFolder.remoteModifier().insert("A/broken", size);
|
fakeFolder.remoteModifier().insert("A/broken", size);
|
||||||
|
|
||||||
|
@ -236,7 +236,7 @@ private slots:
|
||||||
resendActual = 0;
|
resendActual = 0;
|
||||||
resendExpected = 10;
|
resendExpected = 10;
|
||||||
|
|
||||||
QSignalSpy completeSpy(&fakeFolder.syncEngine(), &SyncEngine::itemCompleted);
|
QSignalSpy completeSpy(&fakeFolder.syncEngine(), &OCC::SyncEngine::itemCompleted);
|
||||||
QVERIFY(!fakeFolder.syncOnce());
|
QVERIFY(!fakeFolder.syncOnce());
|
||||||
QCOMPARE(resendActual, 4); // the 4th fails because it only resends 3 times
|
QCOMPARE(resendActual, 4); // the 4th fails because it only resends 3 times
|
||||||
QCOMPARE(getItem(completeSpy, "A/resendme")->_status, SyncFileItem::NormalError);
|
QCOMPARE(getItem(completeSpy, "A/resendme")->_status, SyncFileItem::NormalError);
|
||||||
|
|
|
@ -16,7 +16,7 @@ class StatusPushSpy : public QSignalSpy
|
||||||
SyncEngine &_syncEngine;
|
SyncEngine &_syncEngine;
|
||||||
public:
|
public:
|
||||||
StatusPushSpy(SyncEngine &syncEngine)
|
StatusPushSpy(SyncEngine &syncEngine)
|
||||||
: QSignalSpy(&syncEngine.syncFileStatusTracker(), &SyncFileStatusTracker::fileStatusChanged)
|
: QSignalSpy(&syncEngine.syncFileStatusTracker(), &OCC::SyncFileStatusTracker::fileStatusChanged)
|
||||||
, _syncEngine(syncEngine)
|
, _syncEngine(syncEngine)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue