Main Page   Modules   Data Structures   File List   Data Fields   Related Pages  

test.h

00001 /* -*- mode: C; c-file-style: "gnu" -*- */
00002 /* test.h  unit test routines
00003  *
00004  * Copyright (C) 2003 Red Hat, Inc.
00005  *
00006  * Licensed under the Academic Free License version 1.2
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 BUS_TEST_H
00025 #define BUS_TEST_H
00026 
00027 #include <config.h>
00028 
00029 #ifdef DBUS_BUILD_TESTS
00030 
00031 #include <dbus/dbus.h>
00032 #include <dbus/dbus-string.h>
00033 #include "connection.h"
00034 
00035 dbus_bool_t bus_dispatch_test         (const DBusString             *test_data_dir);
00036 dbus_bool_t bus_dispatch_sha1_test    (const DBusString             *test_data_dir);
00037 dbus_bool_t bus_policy_test           (const DBusString             *test_data_dir);
00038 dbus_bool_t bus_config_parser_test    (const DBusString             *test_data_dir);
00039 dbus_bool_t bus_signals_test          (const DBusString             *test_data_dir);
00040 dbus_bool_t bus_setup_debug_client    (DBusConnection               *connection);
00041 void        bus_test_clients_foreach  (BusConnectionForeachFunction  function,
00042                                        void                         *data);
00043 dbus_bool_t bus_test_client_listed    (DBusConnection               *connection);
00044 void        bus_test_run_bus_loop     (BusContext                   *context,
00045                                        dbus_bool_t                   block);
00046 void        bus_test_run_clients_loop (dbus_bool_t                   block);
00047 void        bus_test_run_everything   (BusContext                   *context);
00048 BusContext* bus_context_new_test      (const DBusString             *test_data_dir,
00049                                        const char                   *filename);
00050 
00051 
00052 #endif
00053 
00054 #endif /* BUS_TEST_H */

Generated on Mon Sep 29 21:31:02 2003 for D-BUS by doxygen1.2.15