#include <base/test.h>
#include <boost/algorithm/string/case_conv.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <vector>
#include <sstream>
#include <string>
#include <utility>
Go to the source code of this file.
Classes | |
class | Nocase< T > |
class | Iequals< T > |
class | UUID |
class | ReadDir |
Defines | |
#define | SYNCEVOLUTION_TEST_SUITE_REGISTRATION(ATestFixtureType) |
Typedefs | |
typedef pair< string, string > | StringPair |
Functions | |
string | normalizePath (const string &path) |
void | mkdir_p (const string &path) |
void | rm_r (const string &path) |
bool | isDir (const string &path) |
#define SYNCEVOLUTION_TEST_SUITE_REGISTRATION | ( | ATestFixtureType | ) |
Value:
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ATestFixtureType, "SyncEvolution" ); \ extern "C" { int funambolAutoRegisterRegistry ## ATestFixtureType = 12345; }
Definition at line 106 of file SyncEvolutionUtil.h.
typedef pair<string, string> StringPair |
shorthand, primarily useful for BOOST_FOREACH macro
Definition at line 46 of file SyncEvolutionUtil.h.
bool isDir | ( | const string & | path | ) |
true if the path refers to a directory
Definition at line 120 of file SyncEvolutionUtil.cpp.
References EvolutionSyncClient::throwError().
Referenced by FileSyncSource::open().
void mkdir_p | ( | const string & | path | ) |
ensure that m_path is writable, otherwise throw error
Definition at line 66 of file SyncEvolutionUtil.cpp.
References EvolutionSyncClient::throwError().
Referenced by FileConfigNode::flush(), and FileSyncSource::open().
string normalizePath | ( | const string & | path | ) |
remove multiple slashes in a row and dots directly after a slash if not followed by filename, remove trailing /
Definition at line 39 of file SyncEvolutionUtil.cpp.
Referenced by FileConfigTree::getChildren(), FileConfigTree::getRootPath(), and FileConfigTree::open().
void rm_r | ( | const string & | path | ) |
remove a complete directory hierarchy; invoking on non-existant directory is okay
Definition at line 92 of file SyncEvolutionUtil.cpp.
References rm_r(), and EvolutionSyncClient::throwError().
Referenced by LogDir::expire(), rm_r(), SyncEvolutionCmdlineTest::testConfigure(), SyncEvolutionCmdlineTest::testMigrate(), SyncEvolutionCmdlineTest::testOldConfigure(), SyncEvolutionCmdlineTest::testPrintConfig(), SyncEvolutionCmdlineTest::testPrintServers(), SyncEvolutionCmdlineTest::testSetupDefault(), SyncEvolutionCmdlineTest::testSetupFunambol(), SyncEvolutionCmdlineTest::testSetupRenamed(), SyncEvolutionCmdlineTest::testSetupScheduleWorld(), and SyncEvolutionCmdlineTest::testSetupSynthesis().