test_get_folders \
test_top_application \
test_update_account \
- test_open_account
+ test_open_account \
+ test_open_edit_accounts_dialog
test_mail_to_SOURCES = test_mail_to.c
test_mail_to_LDADD = $(objects)
test_open_account_SOURCES = test_open_account.c
test_open_account_LDADD = $(objects)
+
+test_open_edit_accounts_dialog_SOURCES = test_open_edit_accounts_dialog.c
+test_open_edit_accounts_dialog_LDADD = $(objects)
main (int argc, char *argv[])
{
osso_context_t *osso_context;
- const char *url;
- gboolean ret;
+ gboolean ret;
osso_context = osso_initialize ("test_open_default_inbox",
"0.0.1",
TRUE,
NULL);
-
+
if (osso_context == NULL) {
g_printerr ("osso_initialize() failed.\n");
return -1;
}
-
- if (argc == 2) {
- url = argv[1];
- } else {
- url = "local://???FIXME???";
- }
- g_print ("Trying to open the default inbox:\n", url);
ret = libmodest_dbus_client_open_default_inbox (osso_context);
if (!ret) {
} else {
g_print ("libmodest_dbus_client_open_default_inbox() succeeded.\n");
}
-
- return ret ? 0 : -1;
+ return ret ? 0 : -1;
}
--- /dev/null
+#include <libmodest-dbus-client/libmodest-dbus-client.h>
+#include <stdio.h>
+
+int
+main (int argc, char *argv[])
+{
+ osso_context_t *osso_context;
+ gboolean ret;
+
+ osso_context = osso_initialize ("test_open_default_inbox",
+ "0.0.1",
+ TRUE,
+ NULL);
+
+ if (osso_context == NULL) {
+ g_printerr ("osso_initialize() failed.\n");
+ return -1;
+ }
+
+ ret = libmodest_dbus_client_open_edit_accounts_dialog (osso_context);
+
+ if (!ret) {
+ g_printerr ("libmodest_dbus_client_open_default_inbox() failed.\n");
+ } else {
+ g_print ("libmodest_dbus_client_open_default_inbox() succeeded.\n");
+ }
+
+ return ret ? 0 : -1;
+}