code for running unit test scripts for DBusAuth
[D-Bus secret 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 244 of file dbus-auth-script.c.

References _dbus_append_user_from_current_process(), _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_identity(), _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_are_anonymous(), _dbus_credentials_new_from_current_process(), _dbus_credentials_unref(), _dbus_file_get_contents(), _dbus_string_append(), _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_get_const_data(), _dbus_string_get_length(), _dbus_string_hex_encode(), _dbus_string_init(), _dbus_string_init_const(), _dbus_string_pop_line(), _dbus_string_starts_with_c_str(), _dbus_warn(), dbus_error_free(), dbus_error_init(), dbus_free_string_array(), DBUS_PID_UNSET, DBUS_UID_UNSET, FALSE, DBusError::message, NULL, and TRUE.


Generated on Wed Aug 29 12:15:04 2007 for D-Bus by  doxygen 1.5.2