Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2016-11-15 20:47:04 +0300
committerOlivier Goffart <olivier@woboq.com>2016-11-21 10:09:11 +0300
commita1dc4069c99757447f27f4a9b6a338fbe7700bb4 (patch)
treedc00466cae61c20b440eee69c5aa5c7d3e87bafc /test/testutility.cpp
parent86846af59d2ae768621e26646f0696ef72ccd0b5 (diff)
libsync: Don't store the remote URI in the csync or in the SyncEngine
We are going to change the webdav path depending on the capabilities. But the SyncEngine and csync might have been created before the capabilities are retrieved. The main raison why we gave the path to the sync engine was to pass it to csync. But the thing is that csync don't need anymore this url as everything is done by the discovery classes in libsync that use the network jobs that use the account for the urls. So csync do not need the remote URI. shortenFilename in folderstatusmodel.cpp was useless because the string is the _file of a SyncFileItem which is the relative file name, that name never starts with owncloud://. All the csync test creates the folder because csync use to check if the folder exists. But we don't need to do that anymore
Diffstat (limited to 'test/testutility.cpp')
-rw-r--r--test/testutility.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/testutility.cpp b/test/testutility.cpp
index cf88acde3..ba5248474 100644
--- a/test/testutility.cpp
+++ b/test/testutility.cpp
@@ -64,14 +64,6 @@ private slots:
QVERIFY(hasLaunchOnStartup(appName) == false);
}
- void testToCSyncScheme()
- {
- QVERIFY(toCSyncScheme("http://example.com/owncloud/") ==
- "owncloud://example.com/owncloud/");
- QVERIFY(toCSyncScheme("https://example.com/owncloud/") ==
- "ownclouds://example.com/owncloud/");
- }
-
void testDurationToDescriptiveString()
{
QLocale::setDefault(QLocale("C"));