result = modest_account_mgr_add_account (account_mgr,
name,
store_account,
- transport_account);
+ transport_account, TRUE);
fail_unless (result,
"modest_account_mgr_add_account failed:\n" \
"name: %s\nstore: %s\ntransport: %s\n",
- name, store_account, transport_account);
+ name, store_account, transport_account, TRUE);
g_free (store_account);
g_free (transport_account);
hostname,
username,
password,
- proto);
+ proto,
+ MODEST_PROTOCOL_SECURITY_NONE,
+ MODEST_PROTOCOL_AUTH_NONE);
fail_unless (result,
"modest_account_mgr_add_server_account failed:\n" \
"name: %s\nhostname: %s\nusername: %s\npassword: %s\nproto: %s",
result = modest_account_mgr_add_account (NULL,
TEST_MODEST_ACCOUNT_NAME,
"store_account",
- "transport_account");
+ "transport_account", TRUE);
fail_unless (!result,
"modest_account_mgr_add_account does not return FALSE when" \
"passing a NULL ModestAccountMgr");
result = modest_account_mgr_add_account (account_mgr,
NULL,
"store_account",
- "transport_account");
+ "transport_account", TRUE);
fail_unless (!result,
"modest_account_mgr_add_account does not return FALSE when" \
"passing a NULL account name");
result = modest_account_mgr_add_account (account_mgr,
"ïnválid//accountñ//nÄméç",
"store_account",
- "transport_account");
+ "transport_account", TRUE);
fail_unless (!result,
"modest_account_mgr_add_account does not return FALSE when" \
"passing an invalid account name");
"hostname",
"username",
"password",
- MODEST_PROTOCOL_STORE_IMAP);
+ MODEST_PROTOCOL_STORE_IMAP,
+ MODEST_PROTOCOL_SECURITY_NONE,
+ MODEST_PROTOCOL_AUTH_NONE);
fail_unless (!result,
"modest_account_mgr_add_server_account does not return " \
"FALSE when passing a NULL ModestAccountMgr");
"hostname",
"username",
"password",
- MODEST_PROTOCOL_STORE_IMAP);
+ MODEST_PROTOCOL_STORE_IMAP,
+ MODEST_PROTOCOL_SECURITY_NONE,
+ MODEST_PROTOCOL_AUTH_NONE);
fail_unless (!result,
"modest_account_mgr_add_server_account does not return " \
"FALSE when passing a NULL account name");
"hostname",
"username",
"password",
- MODEST_PROTOCOL_STORE_IMAP);
+ MODEST_PROTOCOL_STORE_IMAP,
+ MODEST_PROTOCOL_SECURITY_NONE,
+ MODEST_PROTOCOL_AUTH_NONE);
fail_unless (!result,
"modest_account_mgr_add_server_account does not return " \
"FALSE when passing an invalid account name");