about summary refs log blame commit diff stats
path: root/src/command.h
blob: 5499e589bff5fbbd4123fc0c62ebcfc8e4fa3e29 (plain) (tree)
pe = wintype; will_return(connection_get_status, JABBER_CONNECTED); expect_cons_show("You must be in a regular chat window to start PGP encrpytion."); gboolean result = cmd_pgp(&window, CMD_PGP, args); assert_true(result); } void cmd_pgp_start_shows_message_when_no_arg_in_console(void** state) { cmd_pgp_start_shows_message_when_no_arg_in_wintype(WIN_CONSOLE); } void cmd_pgp_start_shows_message_when_no_arg_in_muc(void** state) { cmd_pgp_start_shows_message_when_no_arg_in_wintype(WIN_MUC); } void cmd_pgp_start_shows_message_when_no_arg_in_conf(void** state) { cmd_pgp_start_shows_message_when_no_arg_in_wintype(WIN_CONFIG); } void cmd_pgp_start_shows_message_when_no_arg_in_private(void** state) { cmd_pgp_start_shows_message_when_no_arg_in_wintype(WIN_PRIVATE); } void cmd_pgp_start_shows_message_when_no_arg_in_xmlconsole(void** state) { cmd_pgp_start_shows_message_when_no_arg_in_wintype(WIN_XML); } #else void cmd_pgp_shows_message_when_pgp_unsupported(void** state) { gchar* args[] = { "gen", NULL }; expect_cons_show("This version of Profanity has not been built with PGP support enabled"); gboolean result = cmd_pgp(NULL, CMD_PGP, args); assert_true(result); } #endif