1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ofdbus/dbus/bus/test.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,65 @@
1.4 +/* -*- mode: C; c-file-style: "gnu" -*- */
1.5 +/* test.h unit test routines
1.6 + *
1.7 + * Copyright (C) 2003 Red Hat, Inc.
1.8 + * Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
1.9 + * Licensed under the Academic Free License version 2.1
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + *
1.21 + * You should have received a copy of the GNU General Public License
1.22 + * along with this program; if not, write to the Free Software
1.23 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1.24 + *
1.25 + */
1.26 +
1.27 +#ifndef BUS_TEST_H
1.28 +#define BUS_TEST_H
1.29 +
1.30 +#ifndef __SYMBIAN32__
1.31 +#include <config.h>
1.32 +#else
1.33 +#include "config.h"
1.34 +#endif //__SYMBIAN32__
1.35 +
1.36 +#ifdef DBUS_BUILD_TESTS
1.37 +
1.38 +#include <dbus/dbus.h>
1.39 +#ifndef __SYMBIAN32__
1.40 +#include <dbus/dbus-string.h>
1.41 +#else
1.42 +#include "dbus-string.h"
1.43 +#endif //__SYMBIAN32__
1.44 +#include "connection.h"
1.45 +
1.46 +dbus_bool_t bus_dispatch_test (const DBusString *test_data_dir);
1.47 +dbus_bool_t bus_dispatch_sha1_test (const DBusString *test_data_dir);
1.48 +dbus_bool_t bus_policy_test (const DBusString *test_data_dir);
1.49 +dbus_bool_t bus_config_parser_test (const DBusString *test_data_dir);
1.50 +dbus_bool_t bus_signals_test (const DBusString *test_data_dir);
1.51 +dbus_bool_t bus_expire_list_test (const DBusString *test_data_dir);
1.52 +dbus_bool_t bus_activation_service_reload_test (const DBusString *test_data_dir);
1.53 +dbus_bool_t bus_setup_debug_client (DBusConnection *connection);
1.54 +void bus_test_clients_foreach (BusConnectionForeachFunction function,
1.55 + void *data);
1.56 +dbus_bool_t bus_test_client_listed (DBusConnection *connection);
1.57 +void bus_test_run_bus_loop (BusContext *context,
1.58 + dbus_bool_t block);
1.59 +void bus_test_run_clients_loop (dbus_bool_t block);
1.60 +void bus_test_run_everything (BusContext *context);
1.61 +BusContext* bus_context_new_test (const DBusString *test_data_dir,
1.62 + const char *filename);
1.63 +
1.64 +
1.65 +
1.66 +#endif
1.67 +
1.68 +#endif /* BUS_TEST_H */