dbus-test.h

00001 /* -*- mode: C; c-file-style: "gnu" -*- */
00002 /* dbus-test.h  Declarations of test functions.
00003  *
00004  * Copyright (C) 2002  Red Hat Inc.
00005  *
00006  * Licensed under the Academic Free License version 2.1
00007  * 
00008  * This program is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  * 
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  *
00022  */
00023 
00024 #ifndef DBUS_TEST_H
00025 #define DBUS_TEST_H
00026 
00027 #include <dbus/dbus-types.h>
00028 #include <dbus/dbus-string.h>
00029 #include <dbus/dbus-marshal-validate.h>
00030 
00031 dbus_bool_t _dbus_hash_test              (void);
00032 dbus_bool_t _dbus_dict_test              (void);
00033 dbus_bool_t _dbus_list_test              (void);
00034 dbus_bool_t _dbus_marshal_test           (void);
00035 dbus_bool_t _dbus_marshal_recursive_test (void);
00036 dbus_bool_t _dbus_marshal_byteswap_test  (void);
00037 dbus_bool_t _dbus_marshal_header_test    (void);
00038 dbus_bool_t _dbus_marshal_validate_test  (void);
00039 dbus_bool_t _dbus_misc_test              (void);
00040 dbus_bool_t _dbus_signature_test         (void);
00041 dbus_bool_t _dbus_mem_pool_test          (void);
00042 dbus_bool_t _dbus_string_test            (void);
00043 dbus_bool_t _dbus_address_test           (void);
00044 dbus_bool_t _dbus_server_test            (void);
00045 dbus_bool_t _dbus_message_test           (const char *test_data_dir);
00046 dbus_bool_t _dbus_auth_test              (const char *test_data_dir);
00047 dbus_bool_t _dbus_md5_test               (void);
00048 dbus_bool_t _dbus_sha_test               (const char *test_data_dir);
00049 dbus_bool_t _dbus_keyring_test           (void);
00050 dbus_bool_t _dbus_data_slot_test         (void);
00051 dbus_bool_t _dbus_sysdeps_test           (void);
00052 dbus_bool_t _dbus_spawn_test             (const char *test_data_dir);
00053 dbus_bool_t _dbus_userdb_test            (const char *test_data_dir);
00054 dbus_bool_t _dbus_memory_test            (void);
00055 dbus_bool_t _dbus_object_tree_test       (void);
00056 dbus_bool_t _dbus_pending_call_test      (const char *test_data_dir);
00057 
00058 void        dbus_internal_do_not_use_run_tests         (const char          *test_data_dir,
00059                                                         const char          *specific_test);
00060 dbus_bool_t dbus_internal_do_not_use_try_message_file  (const DBusString    *filename,
00061                                                         DBusValidity         expected_validity);
00062 dbus_bool_t dbus_internal_do_not_use_try_message_data  (const DBusString    *data,
00063                                                         DBusValidity         expected_validity);
00064 dbus_bool_t dbus_internal_do_not_use_load_message_file (const DBusString    *filename,
00065                                                         DBusString          *data);
00066 
00067 
00068 /* returns FALSE on fatal failure */
00069 typedef dbus_bool_t (* DBusForeachMessageFileFunc) (const DBusString   *filename,
00070                                                     DBusValidity        expected_validity,
00071                                                     void               *data);
00072 
00073 dbus_bool_t dbus_internal_do_not_use_foreach_message_file (const char                 *test_data_dir,
00074                                                            DBusForeachMessageFileFunc  func,
00075                                                            void                       *user_data);
00076 dbus_bool_t dbus_internal_do_not_use_generate_bodies    (int           sequence,
00077                                                          int           byte_order,
00078                                                          DBusString   *signature,
00079                                                          DBusString   *body);
00080 
00081 
00082 #endif /* DBUS_TEST_H */

Generated on Fri Sep 21 18:12:13 2007 for D-Bus by  doxygen 1.5.1