/* Copyright (c) 2013-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "sha1.h"
#include "str.h"
#include "mailbox-list-private.h"
#include "dsync-mailbox-tree-private.h"
#include "test-common.h"
#include <stdio.h>
};
{
return '/';
}
{
}
static struct dsync_mailbox_node *
const char *name, unsigned int last_renamed_or_created)
{
return node;
}
static struct dsync_mailbox_node *
const char *name)
{
}
const char *const *names)
{
*counter += 1;
}
}
const char *const *names)
{
*counter += 1;
}
}
static void
{
return;
if (*parent_name != '\0')
for (i = 0; i < nodes_count; i++) {
*counter += 1;
}
}
{
unsigned int counter = 0;
return tree;
}
unsigned int *newguid_counter)
{
if (node->sync_delayed_guid_change) {
/* the real code will pick one of the GUIDs.
we don't really care which one gets picked, so we'll
just change them to the same new one */
sizeof(*newguid_counter));
*newguid_counter += 1;
}
/* nonexistent node, drop it */
} else {
}
}
}
{
}
{
unsigned int i;
(long)node->last_renamed_or_created);
}
}
struct dsync_mailbox_tree *tree2)
{
printf("tree1:\n");
printf("tree2:\n");
}
struct dsync_mailbox_tree **_tree2)
{
/* test tree1 -> tree2 */
}
}
/* test tree2 -> tree1 */
}
}
/* make sure both directions produced equal trees */
}
}
static void
struct mail_namespace *ns)
{
}
}
static void
struct mail_namespace *ns)
{
}
struct dsync_mailbox_tree *tree2)
{
/* test without namespace prefix */
/* test with namespace prefix */
}
static void test_dsync_mailbox_tree_sync_creates(void)
{
unsigned int counter = 0;
test_begin("dsync mailbox tree sync creates");
test_end();
}
static void test_dsync_mailbox_tree_sync_deletes(void)
{
unsigned int counter = 0;
test_begin("dsync mailbox tree sync deletes");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames1(void)
{
unsigned int counter = 0;
test_begin("dsync mailbox tree sync renames 1");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames2(void)
{
test_begin("dsync mailbox tree sync renames 2");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames3(void)
{
test_begin("dsync mailbox tree sync renames 3");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames4(void)
{
test_begin("dsync mailbox tree sync renames 4");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames5(void)
{
test_begin("dsync mailbox tree sync renames 5");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames6(void)
{
test_begin("dsync mailbox tree sync renames 6");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames7(void)
{
test_begin("dsync mailbox tree sync renames 7");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames8(void)
{
test_begin("dsync mailbox tree sync renames 8");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames9(void)
{
test_begin("dsync mailbox tree sync renames 9");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames10(void)
{
test_begin("dsync mailbox tree sync renames 10");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames11(void)
{
test_begin("dsync mailbox tree sync renames 11");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames12(void)
{
test_begin("dsync mailbox tree sync renames 12");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames13(void)
{
test_begin("dsync mailbox tree sync renames 13");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames14(void)
{
test_begin("dsync mailbox tree sync renames 14");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames15(void)
{
test_begin("dsync mailbox tree sync renames 15");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames16(void)
{
test_begin("dsync mailbox tree sync renames 16");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames17(void)
{
test_begin("dsync mailbox tree sync renames 17");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames18(void)
{
test_begin("dsync mailbox tree sync renames 18");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames19(void)
{
test_begin("dsync mailbox tree sync renames 19");
test_end();
}
static void test_dsync_mailbox_tree_sync_renames20(void)
{
test_begin("dsync mailbox tree sync renames 20");
/* rename 0 -> 1/0 */
test_end();
}
static void test_dsync_mailbox_tree_sync_renames21(void)
{
#if 0
/* FIXME: we can't currently test this without crashing */
test_begin("dsync mailbox tree sync renames 21");
/* swap INBOX and foo - the INBOX name is important since it's
treated specially */
test_end();
#endif
}
static void test_dsync_mailbox_tree_sync_renames22(void)
{
test_begin("dsync mailbox tree sync renames 22");
test_end();
}
static void test_dsync_mailbox_tree_sync_random(void)
{
test_begin("dsync mailbox tree sync random");
tree1 = create_random_tree();
tree2 = create_random_tree();
test_end();
}
int main(void)
{
static void (*const test_functions[])(void) = {
};
return test_run(test_functions);
}