dbus-test.h

00001 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
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 dbus_bool_t _dbus_credentials_test       (const char *test_data_dir);
00058 
00059 void        dbus_internal_do_not_use_run_tests         (const char          *test_data_dir,
00060                                                         const char          *specific_test);
00061 dbus_bool_t dbus_internal_do_not_use_try_message_file  (const DBusString    *filename,
00062                                                         DBusValidity         expected_validity);
00063 dbus_bool_t dbus_internal_do_not_use_try_message_data  (const DBusString    *data,
00064                                                         DBusValidity         expected_validity);
00065 dbus_bool_t dbus_internal_do_not_use_load_message_file (const DBusString    *filename,
00066                                                         DBusString          *data);
00067 
00068 
00069 /* returns FALSE on fatal failure */
00070 typedef dbus_bool_t (* DBusForeachMessageFileFunc) (const DBusString   *filename,
00071                                                     DBusValidity        expected_validity,
00072                                                     void               *data);
00073 
00074 dbus_bool_t dbus_internal_do_not_use_foreach_message_file (const char                 *test_data_dir,
00075                                                            DBusForeachMessageFileFunc  func,
00076                                                            void                       *user_data);
00077 dbus_bool_t dbus_internal_do_not_use_generate_bodies    (int           sequence,
00078                                                          int           byte_order,
00079                                                          DBusString   *signature,
00080                                                          DBusString   *body);
00081 
00082 
00083 #endif /* DBUS_TEST_H */

Generated on Tue Feb 24 16:40:40 2009 for D-Bus by  doxygen 1.5.1