D-Bus
1.10.12
|
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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 /* Only things that are in libdbus-1.la and used from libdbus-internal.la 00032 * need to have DBUS_PRIVATE_EXPORT. If you get 00033 * 00034 * warning: 'foo' redeclared without dllimport attribute: previous 00035 * dllimport ignored [-Wattributes] 00036 * 00037 * then you have added too many. 00038 */ 00039 00040 DBUS_PRIVATE_EXPORT 00041 dbus_bool_t _dbus_hash_test (void); 00042 00043 DBUS_PRIVATE_EXPORT 00044 dbus_bool_t _dbus_list_test (void); 00045 00046 DBUS_PRIVATE_EXPORT 00047 dbus_bool_t _dbus_marshal_test (void); 00048 00049 dbus_bool_t _dbus_marshal_recursive_test (void); 00050 dbus_bool_t _dbus_marshal_byteswap_test (void); 00051 dbus_bool_t _dbus_marshal_validate_test (void); 00052 00053 DBUS_PRIVATE_EXPORT 00054 dbus_bool_t _dbus_misc_test (void); 00055 00056 DBUS_PRIVATE_EXPORT 00057 dbus_bool_t _dbus_signature_test (void); 00058 00059 DBUS_PRIVATE_EXPORT 00060 dbus_bool_t _dbus_mem_pool_test (void); 00061 00062 dbus_bool_t _dbus_string_test (void); 00063 00064 DBUS_PRIVATE_EXPORT 00065 dbus_bool_t _dbus_address_test (void); 00066 00067 DBUS_PRIVATE_EXPORT 00068 dbus_bool_t _dbus_server_test (void); 00069 00070 dbus_bool_t _dbus_message_test (const char *test_data_dir); 00071 dbus_bool_t _dbus_auth_test (const char *test_data_dir); 00072 00073 DBUS_PRIVATE_EXPORT 00074 dbus_bool_t _dbus_sha_test (const char *test_data_dir); 00075 00076 DBUS_PRIVATE_EXPORT 00077 dbus_bool_t _dbus_keyring_test (void); 00078 00079 DBUS_PRIVATE_EXPORT 00080 dbus_bool_t _dbus_data_slot_test (void); 00081 00082 dbus_bool_t _dbus_sysdeps_test (void); 00083 dbus_bool_t _dbus_spawn_test (const char *test_data_dir); 00084 00085 DBUS_PRIVATE_EXPORT 00086 dbus_bool_t _dbus_userdb_test (const char *test_data_dir); 00087 00088 DBUS_PRIVATE_EXPORT 00089 dbus_bool_t _dbus_transport_unix_test (void); 00090 00091 DBUS_PRIVATE_EXPORT 00092 dbus_bool_t _dbus_memory_test (void); 00093 00094 DBUS_PRIVATE_EXPORT 00095 dbus_bool_t _dbus_object_tree_test (void); 00096 00097 dbus_bool_t _dbus_credentials_test (const char *test_data_dir); 00098 00099 void dbus_internal_do_not_use_run_tests (const char *test_data_dir, 00100 const char *specific_test); 00101 dbus_bool_t dbus_internal_do_not_use_try_message_file (const DBusString *filename, 00102 DBusValidity expected_validity); 00103 dbus_bool_t dbus_internal_do_not_use_try_message_data (const DBusString *data, 00104 DBusValidity expected_validity); 00105 dbus_bool_t dbus_internal_do_not_use_load_message_file (const DBusString *filename, 00106 DBusString *data); 00107 00108 00109 /* returns FALSE on fatal failure */ 00110 typedef dbus_bool_t (* DBusForeachMessageFileFunc) (const DBusString *filename, 00111 DBusValidity expected_validity, 00112 void *data); 00113 00114 dbus_bool_t dbus_internal_do_not_use_foreach_message_file (const char *test_data_dir, 00115 DBusForeachMessageFileFunc func, 00116 void *user_data); 00117 dbus_bool_t dbus_internal_do_not_use_generate_bodies (int sequence, 00118 int byte_order, 00119 DBusString *signature, 00120 DBusString *body); 00121 00122 00123 #endif /* DBUS_TEST_H */