1
/* tinymail - Tiny Mail unit test
2
 * Copyright (C) 2006-2007 Philip Van Hoof <pvanhoof@gnome.org>
3
 *
4
 * This library is free software; you can redistribute it and/or
5
 * modify it under the terms of the GNU Lesser General Public
6
 * License as published by the Free Software Foundation; either
7
 * version 2 of the License, or (at your option) any later version.
8
 *
9
 * This library is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
12
 * Lesser General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU Lesser General Public
15
 * License along with self library; if not, write to the
16
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
 * Boston, MA 02110-1301, USA.
18
 */
19
20
#include "check_libtinymail.h"
21
22
#include <tny-account-store.h>
23
#include <tny-platform-factory.h>
24
#include <platfact.h>
25
26
static TnyAccountStore *iface = NULL;
27
static TnyPlatformFactory *platfact = NULL;
28
29
static void
30
tny_account_store_test_setup (void)
31
{
32
	/* platfact is a singleton */
33
    
34
	platfact = tny_test_platform_factory_get_instance ();
35
	iface = tny_platform_factory_new_account_store (platfact);
36
37
	return;
38
}
39
40
static void 
41
tny_account_store_test_teardown (void)
42
{
43
	g_object_unref (G_OBJECT (iface));
44
45
	return;
46
}
47
48
/* TODO: 
49
	test signals: account_changed, account_inserted, account_removed, accounts_reloaded
50
	test methods: get_accounts, add_store_account, add_transport_account, get_cache_dir, get_device
51
	test callback: alert
52
*/
53
54
55
START_TEST (tny_account_store_test_something)
56
{
57
}
58
END_TEST
59
60
Suite *
61
create_tny_account_store_suite (void)
62
{
63
     Suite *s = suite_create ("Account Store");
64
65
     TCase *tc = tcase_create ("Empty test");
66
     tcase_add_checked_fixture (tc, tny_account_store_test_setup, tny_account_store_test_teardown);
67
     tcase_add_test (tc, tny_account_store_test_something);
68
     suite_add_tcase (s, tc);
69
70
     return s;
71
}