code for running unit test scripts for DBusAuth
[D-BUS internal implementation details]

DBusAuth unit test scripting. More...

Functions

dbus_bool_t _dbus_auth_script_run (const DBusString *filename)
 Runs an "auth script" which is a script for testing the authentication protocol.

Detailed Description

DBusAuth unit test scripting.

The code in here is used for unit testing, it loads up a script that tests DBusAuth.


Function Documentation

dbus_bool_t _dbus_auth_script_run const DBusString filename  ) 
 

Runs an "auth script" which is a script for testing the authentication protocol.

Scripts send and receive data, and then include assertions about the state of both ends of the connection after processing the data. A script succeeds if these assertions hold.

Parameters:
filename the file containing the script to run
Returns:
TRUE if the script succeeds, FALSE otherwise

Definition at line 223 of file dbus-auth-script.c.

References _dbus_auth_bytes_sent(), _dbus_auth_client_new(), _dbus_auth_delete_unused_bytes(), _dbus_auth_do_work(), _dbus_auth_get_buffer(), _dbus_auth_get_bytes_to_send(), _dbus_auth_get_unused_bytes(), _dbus_auth_ref(), _dbus_auth_return_buffer(), _dbus_auth_server_new(), _dbus_auth_set_context(), _dbus_auth_set_credentials(), _dbus_auth_set_mechanisms(), _dbus_auth_unref(), _dbus_credentials_from_current_process(), _dbus_file_get_contents(), _dbus_getuid(), _dbus_string_append(), _dbus_string_append_uint(), _dbus_string_copy(), _dbus_string_delete(), _dbus_string_delete_first_word(), _dbus_string_delete_leading_blanks(), _dbus_string_equal(), _dbus_string_equal_len(), _dbus_string_find(), _dbus_string_free(), _dbus_string_hex_encode(), _dbus_string_init(), _dbus_string_init_const(), _dbus_string_pop_line(), _dbus_string_starts_with_c_str(), _dbus_username_from_current_process(), _dbus_warn(), dbus_error_free(), dbus_error_init(), dbus_free_string_array(), FALSE, DBusError::message, NULL, and TRUE.


Generated on Tue Jul 7 15:14:01 2009 for D-BUS by  doxygen 1.4.6