mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 14:36:21 +00:00
Remove JABBER_STARTED, JABBER_UNDEFINED connection states
This commit is contained in:
@@ -46,16 +46,6 @@ void cmd_bookmark_shows_message_when_connecting(void **state)
|
||||
test_with_connection_status(JABBER_CONNECTING);
|
||||
}
|
||||
|
||||
void cmd_bookmark_shows_message_when_started(void **state)
|
||||
{
|
||||
test_with_connection_status(JABBER_STARTED);
|
||||
}
|
||||
|
||||
void cmd_bookmark_shows_message_when_undefined(void **state)
|
||||
{
|
||||
test_with_connection_status(JABBER_UNDEFINED);
|
||||
}
|
||||
|
||||
void cmd_bookmark_shows_usage_when_no_args(void **state)
|
||||
{
|
||||
gchar *args[] = { NULL };
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
void cmd_bookmark_shows_message_when_disconnected(void **state);
|
||||
void cmd_bookmark_shows_message_when_disconnecting(void **state);
|
||||
void cmd_bookmark_shows_message_when_connecting(void **state);
|
||||
void cmd_bookmark_shows_message_when_started(void **state);
|
||||
void cmd_bookmark_shows_message_when_undefined(void **state);
|
||||
void cmd_bookmark_shows_usage_when_no_args(void **state);
|
||||
void cmd_bookmark_list_shows_bookmarks(void **state);
|
||||
|
||||
@@ -41,11 +41,6 @@ void cmd_connect_shows_message_when_connected(void **state)
|
||||
test_with_connection_status(JABBER_CONNECTED);
|
||||
}
|
||||
|
||||
void cmd_connect_shows_message_when_undefined(void **state)
|
||||
{
|
||||
test_with_connection_status(JABBER_UNDEFINED);
|
||||
}
|
||||
|
||||
void cmd_connect_when_no_account(void **state)
|
||||
{
|
||||
gchar *args[] = { "user@server.org", NULL };
|
||||
|
||||
@@ -43,11 +43,6 @@ void cmd_join_shows_message_when_disconnected(void **state)
|
||||
test_with_connection_status(JABBER_DISCONNECTED);
|
||||
}
|
||||
|
||||
void cmd_join_shows_message_when_undefined(void **state)
|
||||
{
|
||||
test_with_connection_status(JABBER_UNDEFINED);
|
||||
}
|
||||
|
||||
void cmd_join_shows_error_message_when_invalid_room_jid(void **state)
|
||||
{
|
||||
gchar *args[] = { "//@@/", NULL };
|
||||
|
||||
@@ -164,16 +164,6 @@ void cmd_otr_gen_shows_message_when_disconnected(void **state)
|
||||
test_with_command_and_connection_status("gen", cmd_otr_gen, JABBER_DISCONNECTED);
|
||||
}
|
||||
|
||||
void cmd_otr_gen_shows_message_when_undefined(void **state)
|
||||
{
|
||||
test_with_command_and_connection_status("gen", cmd_otr_gen, JABBER_UNDEFINED);
|
||||
}
|
||||
|
||||
void cmd_otr_gen_shows_message_when_started(void **state)
|
||||
{
|
||||
test_with_command_and_connection_status("gen", cmd_otr_gen, JABBER_STARTED);
|
||||
}
|
||||
|
||||
void cmd_otr_gen_shows_message_when_connecting(void **state)
|
||||
{
|
||||
test_with_command_and_connection_status("gen", cmd_otr_gen, JABBER_CONNECTING);
|
||||
@@ -209,16 +199,6 @@ void cmd_otr_myfp_shows_message_when_disconnected(void **state)
|
||||
test_with_command_and_connection_status("myfp", cmd_otr_myfp, JABBER_DISCONNECTED);
|
||||
}
|
||||
|
||||
void cmd_otr_myfp_shows_message_when_undefined(void **state)
|
||||
{
|
||||
test_with_command_and_connection_status("myfp", cmd_otr_myfp, JABBER_UNDEFINED);
|
||||
}
|
||||
|
||||
void cmd_otr_myfp_shows_message_when_started(void **state)
|
||||
{
|
||||
test_with_command_and_connection_status("myfp", cmd_otr_myfp, JABBER_STARTED);
|
||||
}
|
||||
|
||||
void cmd_otr_myfp_shows_message_when_connecting(void **state)
|
||||
{
|
||||
test_with_command_and_connection_status("myfp", cmd_otr_myfp, JABBER_CONNECTING);
|
||||
|
||||
@@ -13,12 +13,10 @@ void cmd_otr_gen_shows_message_when_not_connected(void **state);
|
||||
void cmd_otr_gen_generates_key_for_connected_account(void **state);
|
||||
void cmd_otr_gen_shows_message_when_disconnected(void **state);
|
||||
void cmd_otr_gen_shows_message_when_undefined(void **state);
|
||||
void cmd_otr_gen_shows_message_when_started(void **state);
|
||||
void cmd_otr_gen_shows_message_when_connecting(void **state);
|
||||
void cmd_otr_gen_shows_message_when_disconnecting(void **state);
|
||||
void cmd_otr_myfp_shows_message_when_disconnected(void **state);
|
||||
void cmd_otr_myfp_shows_message_when_undefined(void **state);
|
||||
void cmd_otr_myfp_shows_message_when_started(void **state);
|
||||
void cmd_otr_myfp_shows_message_when_connecting(void **state);
|
||||
void cmd_otr_myfp_shows_message_when_disconnecting(void **state);
|
||||
void cmd_otr_myfp_shows_message_when_no_key(void **state);
|
||||
|
||||
@@ -55,16 +55,6 @@ void cmd_pgp_start_shows_message_when_connecting(void **state)
|
||||
cmd_pgp_start_shows_message_when_connection(JABBER_CONNECTING);
|
||||
}
|
||||
|
||||
void cmd_pgp_start_shows_message_when_undefined(void **state)
|
||||
{
|
||||
cmd_pgp_start_shows_message_when_connection(JABBER_UNDEFINED);
|
||||
}
|
||||
|
||||
void cmd_pgp_start_shows_message_when_started(void **state)
|
||||
{
|
||||
cmd_pgp_start_shows_message_when_connection(JABBER_STARTED);
|
||||
}
|
||||
|
||||
void cmd_pgp_start_shows_message_when_no_arg_in_wintype(win_type_t wintype)
|
||||
{
|
||||
gchar *args[] = { "start", NULL };
|
||||
|
||||
@@ -6,7 +6,6 @@ void cmd_pgp_start_shows_message_when_disconnected(void **state);
|
||||
void cmd_pgp_start_shows_message_when_disconnecting(void **state);
|
||||
void cmd_pgp_start_shows_message_when_connecting(void **state);
|
||||
void cmd_pgp_start_shows_message_when_undefined(void **state);
|
||||
void cmd_pgp_start_shows_message_when_started(void **state);
|
||||
void cmd_pgp_start_shows_message_when_no_arg_in_console(void **state);
|
||||
void cmd_pgp_start_shows_message_when_no_arg_in_muc(void **state);
|
||||
void cmd_pgp_start_shows_message_when_no_arg_in_mucconf(void **state);
|
||||
|
||||
@@ -41,16 +41,6 @@ void cmd_rooms_shows_message_when_connecting(void **state)
|
||||
test_with_connection_status(JABBER_CONNECTING);
|
||||
}
|
||||
|
||||
void cmd_rooms_shows_message_when_started(void **state)
|
||||
{
|
||||
test_with_connection_status(JABBER_STARTED);
|
||||
}
|
||||
|
||||
void cmd_rooms_shows_message_when_undefined(void **state)
|
||||
{
|
||||
test_with_connection_status(JABBER_UNDEFINED);
|
||||
}
|
||||
|
||||
void cmd_rooms_uses_account_default_when_no_arg(void **state)
|
||||
{
|
||||
gchar *args[] = { NULL };
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
void cmd_rooms_shows_message_when_disconnected(void **state);
|
||||
void cmd_rooms_shows_message_when_disconnecting(void **state);
|
||||
void cmd_rooms_shows_message_when_connecting(void **state);
|
||||
void cmd_rooms_shows_message_when_started(void **state);
|
||||
void cmd_rooms_shows_message_when_undefined(void **state);
|
||||
void cmd_rooms_uses_account_default_when_no_arg(void **state);
|
||||
void cmd_rooms_arg_used_when_passed(void **state);
|
||||
|
||||
@@ -42,11 +42,6 @@ void cmd_roster_shows_message_when_disconnected(void **state)
|
||||
test_with_connection_status(JABBER_DISCONNECTED);
|
||||
}
|
||||
|
||||
void cmd_roster_shows_message_when_undefined(void **state)
|
||||
{
|
||||
test_with_connection_status(JABBER_UNDEFINED);
|
||||
}
|
||||
|
||||
void cmd_roster_shows_roster_when_no_args(void **state)
|
||||
{
|
||||
gchar *args[] = { NULL };
|
||||
|
||||
@@ -238,9 +238,6 @@ int main(int argc, char* argv[]) {
|
||||
unit_test_setup_teardown(cmd_connect_shows_message_when_connected,
|
||||
load_preferences,
|
||||
close_preferences),
|
||||
unit_test_setup_teardown(cmd_connect_shows_message_when_undefined,
|
||||
load_preferences,
|
||||
close_preferences),
|
||||
unit_test_setup_teardown(cmd_connect_when_no_account,
|
||||
load_preferences,
|
||||
close_preferences),
|
||||
@@ -308,8 +305,6 @@ int main(int argc, char* argv[]) {
|
||||
unit_test(cmd_rooms_shows_message_when_disconnected),
|
||||
unit_test(cmd_rooms_shows_message_when_disconnecting),
|
||||
unit_test(cmd_rooms_shows_message_when_connecting),
|
||||
unit_test(cmd_rooms_shows_message_when_started),
|
||||
unit_test(cmd_rooms_shows_message_when_undefined),
|
||||
unit_test(cmd_rooms_uses_account_default_when_no_arg),
|
||||
unit_test(cmd_rooms_arg_used_when_passed),
|
||||
|
||||
@@ -484,8 +479,6 @@ int main(int argc, char* argv[]) {
|
||||
unit_test(cmd_bookmark_shows_message_when_disconnected),
|
||||
unit_test(cmd_bookmark_shows_message_when_disconnecting),
|
||||
unit_test(cmd_bookmark_shows_message_when_connecting),
|
||||
unit_test(cmd_bookmark_shows_message_when_started),
|
||||
unit_test(cmd_bookmark_shows_message_when_undefined),
|
||||
unit_test(cmd_bookmark_shows_usage_when_no_args),
|
||||
unit_test(cmd_bookmark_list_shows_bookmarks),
|
||||
unit_test(cmd_bookmark_add_shows_message_when_invalid_jid),
|
||||
@@ -518,13 +511,9 @@ int main(int argc, char* argv[]) {
|
||||
unit_test(cmd_otr_gen_shows_message_when_not_connected),
|
||||
unit_test(cmd_otr_gen_generates_key_for_connected_account),
|
||||
unit_test(cmd_otr_gen_shows_message_when_disconnected),
|
||||
unit_test(cmd_otr_gen_shows_message_when_undefined),
|
||||
unit_test(cmd_otr_gen_shows_message_when_started),
|
||||
unit_test(cmd_otr_gen_shows_message_when_connecting),
|
||||
unit_test(cmd_otr_gen_shows_message_when_disconnecting),
|
||||
unit_test(cmd_otr_myfp_shows_message_when_disconnected),
|
||||
unit_test(cmd_otr_myfp_shows_message_when_undefined),
|
||||
unit_test(cmd_otr_myfp_shows_message_when_started),
|
||||
unit_test(cmd_otr_myfp_shows_message_when_connecting),
|
||||
unit_test(cmd_otr_myfp_shows_message_when_disconnecting),
|
||||
unit_test(cmd_otr_myfp_shows_message_when_no_key),
|
||||
@@ -551,8 +540,6 @@ int main(int argc, char* argv[]) {
|
||||
unit_test(cmd_pgp_start_shows_message_when_disconnected),
|
||||
unit_test(cmd_pgp_start_shows_message_when_disconnecting),
|
||||
unit_test(cmd_pgp_start_shows_message_when_connecting),
|
||||
unit_test(cmd_pgp_start_shows_message_when_undefined),
|
||||
unit_test(cmd_pgp_start_shows_message_when_started),
|
||||
unit_test(cmd_pgp_start_shows_message_when_no_arg_in_console),
|
||||
unit_test(cmd_pgp_start_shows_message_when_no_arg_in_muc),
|
||||
unit_test(cmd_pgp_start_shows_message_when_no_arg_in_mucconf),
|
||||
@@ -565,7 +552,6 @@ int main(int argc, char* argv[]) {
|
||||
unit_test(cmd_join_shows_message_when_disconnecting),
|
||||
unit_test(cmd_join_shows_message_when_connecting),
|
||||
unit_test(cmd_join_shows_message_when_disconnected),
|
||||
unit_test(cmd_join_shows_message_when_undefined),
|
||||
unit_test(cmd_join_shows_error_message_when_invalid_room_jid),
|
||||
unit_test(cmd_join_uses_account_mucservice_when_no_service_specified),
|
||||
unit_test(cmd_join_uses_supplied_nick),
|
||||
@@ -575,7 +561,6 @@ int main(int argc, char* argv[]) {
|
||||
unit_test(cmd_roster_shows_message_when_disconnecting),
|
||||
unit_test(cmd_roster_shows_message_when_connecting),
|
||||
unit_test(cmd_roster_shows_message_when_disconnected),
|
||||
unit_test(cmd_roster_shows_message_when_undefined),
|
||||
unit_test(cmd_roster_shows_roster_when_no_args),
|
||||
unit_test(cmd_roster_add_shows_message_when_no_jid),
|
||||
unit_test(cmd_roster_add_sends_roster_add_request),
|
||||
|
||||
Reference in New Issue
Block a user