}
static int teardown(void **state) {
- CSYNC *csync = (CSYNC*)*state;
+ auto *csync = (CSYNC*)*state;
int rc = 0;
auto statedb = csync->statedb;
static int teardown(void **state)
{
- CSYNC *csync = (CSYNC*)*state;
+ auto *csync = (CSYNC*)*state;
unlink(TESTDB);
auto statedb = csync->statedb;
/* detect a new file */
static void check_csync_detect_update(void **state)
{
- CSYNC *csync = (CSYNC*)*state;
+ auto *csync = (CSYNC*)*state;
csync_file_stat_t *st = nullptr;
std::unique_ptr<csync_file_stat_t> fs;
int rc = 0;
*/
static void check_csync_detect_update_db_none(void **state)
{
- CSYNC *csync = (CSYNC*)*state;
+ auto *csync = (CSYNC*)*state;
csync_file_stat_t *st = nullptr;
std::unique_ptr<csync_file_stat_t> fs;
int rc = 0;
static void check_csync_detect_update_db_eval(void **state)
{
- CSYNC *csync = (CSYNC*)*state;
+ auto *csync = (CSYNC*)*state;
csync_file_stat_t *st = nullptr;
std::unique_ptr<csync_file_stat_t> fs;
int rc = 0;
static void check_csync_detect_update_db_rename(void **state)
{
- CSYNC *csync = (CSYNC*)*state;
+ auto *csync = (CSYNC*)*state;
// csync_file_stat_t *st;
std::unique_ptr<csync_file_stat_t> fs;
static void check_csync_detect_update_db_new(void **state)
{
- CSYNC *csync = (CSYNC*)*state;
+ auto *csync = (CSYNC*)*state;
csync_file_stat_t *st = nullptr;
std::unique_ptr<csync_file_stat_t> fs;
int rc = 0;
static void check_csync_ftw(void **state)
{
- CSYNC *csync = (CSYNC*)*state;
+ auto *csync = (CSYNC*)*state;
int rc = 0;
rc = csync_ftw(csync, "/tmp", csync_walker, MAX_DEPTH);
static void check_csync_ftw_empty_uri(void **state)
{
- CSYNC *csync = (CSYNC*)*state;
+ auto *csync = (CSYNC*)*state;
int rc = 0;
rc = csync_ftw(csync, "", csync_walker, MAX_DEPTH);
static void check_csync_ftw_failing_fn(void **state)
{
- CSYNC *csync = (CSYNC*)*state;
+ auto *csync = (CSYNC*)*state;
int rc = 0;
rc = csync_ftw(csync, "/tmp", failing_fn, MAX_DEPTH);
}
static int teardown(void **state) {
- CSYNC *csync = (CSYNC*)*state;
+ auto *csync = (CSYNC*)*state;
int rc = 0;
auto statedb = csync->statedb;
static void check_csync_vio_opendir(void **state)
{
- CSYNC *csync = (CSYNC*)*state;
+ auto *csync = (CSYNC*)*state;
csync_vio_handle_t *dh = nullptr;
int rc = 0;
static void check_csync_vio_opendir_perm(void **state)
{
- CSYNC *csync = (CSYNC*)*state;
+ auto *csync = (CSYNC*)*state;
csync_vio_handle_t *dh = nullptr;
int rc = 0;
mbchar_t *dir = c_utf8_path_to_locale(CSYNC_TEST_DIR);
static void check_csync_vio_closedir_null(void **state)
{
- CSYNC *csync = (CSYNC*)*state;
+ auto *csync = (CSYNC*)*state;
int rc = 0;
rc = csync_vio_closedir(csync, nullptr);
c_free_locale_string(dir);
/* --- initialize csync */
- statevar *mystate = (statevar*)malloc( sizeof(statevar) );
+ auto *mystate = (statevar*)malloc( sizeof(statevar) );
mystate->result = nullptr;
mystate->csync = new CSYNC("/tmp/check_csync1", new OCC::SyncJournalDb(""));
}
static int teardown(void **state) {
- statevar *sv = (statevar*) *state;
+ auto *sv = (statevar*) *state;
CSYNC *csync = sv->csync;
int rc = 0;
{
csync_vio_handle_t *dh = nullptr;
std::unique_ptr<csync_file_stat_t> dirent;
- statevar *sv = (statevar*) *state;
+ auto *sv = (statevar*) *state;
CSYNC *csync = sv->csync;
char *subdir = nullptr;
char *subdir_out = nullptr;
static void check_readdir_shorttree(void **state)
{
- statevar *sv = (statevar*) *state;
+ auto *sv = (statevar*) *state;
const char *t1 = "alibaba/und/die/vierzig/räuber/";
create_dirs( t1 );
static void check_readdir_with_content(void **state)
{
- statevar *sv = (statevar*) *state;
+ auto *sv = (statevar*) *state;
int files_cnt = 0;
const char *t1 = "warum/nur/40/Räuber/";
static void check_readdir_longtree(void **state)
{
- statevar *sv = (statevar*) *state;
+ auto *sv = (statevar*) *state;
/* Strange things here: Compilers only support strings with length of 4k max.
* The expected result string is longer, so it needs to be split up in r1, r2 and r3
// https://github.com/owncloud/client/issues/3128 https://github.com/owncloud/client/issues/2777
static void check_readdir_bigunicode(void **state)
{
- statevar *sv = (statevar*) *state;
+ auto *sv = (statevar*) *state;
// 1: ? ASCII: 239 - EF
// 2: ? ASCII: 187 - BB
// 3: ? ASCII: 191 - BF