"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/testsyncengine.cpp" between
ownCloud-2.7.5.3180.tar.xz and ownCloud-2.7.6.3261.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.

testsyncengine.cpp  (ownCloud-2.7.5.3180.tar.xz):testsyncengine.cpp  (ownCloud-2.7.6.3261.tar.xz)
skipping to change at line 338 skipping to change at line 338
FakeFolder fakeFolder{ FileInfo::A12_B12_C12_S12() }; FakeFolder fakeFolder{ FileInfo::A12_B12_C12_S12() };
int nGET = 0; int nGET = 0;
fakeFolder.setServerOverride([&](QNetworkAccessManager::Operation op, co nst QNetworkRequest &, QIODevice *) { fakeFolder.setServerOverride([&](QNetworkAccessManager::Operation op, co nst QNetworkRequest &, QIODevice *) {
if (op == QNetworkAccessManager::GetOperation) if (op == QNetworkAccessManager::GetOperation)
++nGET; ++nGET;
return nullptr; return nullptr;
}); });
// For directly editing the remote checksum // For directly editing the remote checksum
FileInfo &remoteInfo = dynamic_cast<FileInfo &>(fakeFolder.remoteModifie r()); FileInfo &remoteInfo = fakeFolder.remoteModifier();
// Base mtime with no ms content (filesystem is seconds only) // Base mtime with no ms content (filesystem is seconds only)
auto mtime = QDateTime::currentDateTimeUtc().addDays(-4); auto mtime = QDateTime::currentDateTimeUtc().addDays(-4);
mtime.setMSecsSinceEpoch(mtime.toMSecsSinceEpoch() / 1000 * 1000); mtime.setMSecsSinceEpoch(mtime.toMSecsSinceEpoch() / 1000 * 1000);
fakeFolder.localModifier().setContents("A/a1", 'C'); fakeFolder.localModifier().setContents("A/a1", 'C');
fakeFolder.localModifier().setModTime("A/a1", mtime); fakeFolder.localModifier().setModTime("A/a1", mtime);
fakeFolder.remoteModifier().setContents("A/a1", 'C'); fakeFolder.remoteModifier().setContents("A/a1", 'C');
if (!sameMtime) if (!sameMtime)
mtime = mtime.addDays(1); mtime = mtime.addDays(1);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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