"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/testutils/syncenginetestutils.cpp" between
ownCloud-2.9.0.5150.tar.xz and ownCloud-2.9.1.5500.tar.xz

About: ownCloud Client (formerly "mirall") is a tool to synchronize files from ownCloud Server with your desktop client. It uses OCSync as its syncing backend.

syncenginetestutils.cpp  (ownCloud-2.9.0.5150.tar.xz):syncenginetestutils.cpp  (ownCloud-2.9.1.5500.tar.xz)
skipping to change at line 938 skipping to change at line 938
opts._vfs = vfs; opts._vfs = vfs;
_syncEngine->setSyncOptions(opts); _syncEngine->setSyncOptions(opts);
OCC::VfsSetupParams vfsParams; OCC::VfsSetupParams vfsParams;
vfsParams.filesystemPath = localPath(); vfsParams.filesystemPath = localPath();
vfsParams.remotePath = QLatin1Char('/'); vfsParams.remotePath = QLatin1Char('/');
vfsParams.account = _account; vfsParams.account = _account;
vfsParams.journal = _journalDb.get(); vfsParams.journal = _journalDb.get();
vfsParams.providerName = QStringLiteral("OC-TEST"); vfsParams.providerName = QStringLiteral("OC-TEST");
vfsParams.providerDisplayName = QStringLiteral("OC-TEST");
vfsParams.providerVersion = QStringLiteral("0.1"); vfsParams.providerVersion = QStringLiteral("0.1");
QObject::connect(_syncEngine.get(), &QObject::destroyed, vfs.data(), [vfs]() { QObject::connect(_syncEngine.get(), &QObject::destroyed, vfs.data(), [vfs]() {
vfs->stop(); vfs->stop();
vfs->unregisterFolder(); vfs->unregisterFolder();
}); });
QObject::connect(vfs.get(), &OCC::Vfs::error, vfs.get(), [](const QString &e
rror) {
QFAIL(qUtf8Printable(error));
});
QSignalSpy spy(vfs.get(), &OCC::Vfs::started);
vfs->start(vfsParams); vfs->start(vfsParams);
// don't use QVERIFY outside of the test slot
if (spy.isEmpty() && !spy.wait()) {
QFAIL("VFS Setup failed");
}
} }
FileInfo FakeFolder::currentLocalState() FileInfo FakeFolder::currentLocalState()
{ {
QDir rootDir { _tempDir.path() }; QDir rootDir { _tempDir.path() };
FileInfo rootTemplate; FileInfo rootTemplate;
fromDisk(rootDir, rootTemplate); fromDisk(rootDir, rootTemplate);
rootTemplate.fixupParentPathRecursively(); rootTemplate.fixupParentPathRecursively();
return rootTemplate; return rootTemplate;
} }
 End of changes. 3 change blocks. 
0 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)