X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=droute%2Fdroute-test.c;h=8701517a254e3bd6ba1a8a67d4aa63b56f42c829;hb=690452f87b3b8c45acb3ea500b9591679b2f6a22;hp=8b3fb7c9b838be45cd9a8aae58ea4db15872ef1b;hpb=83078472bfc64d9a6bb884a82db0a4db3dfd78b7;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git
diff --git a/droute/droute-test.c b/droute/droute-test.c
index 8b3fb7c..8701517 100644
--- a/droute/droute-test.c
+++ b/droute/droute-test.c
@@ -13,10 +13,6 @@
#define OBJECT_ONE "ObjectOne";
#define OBJECT_TWO "ObjectTwo";
-#if !defined TEST_INTROSPECTION_DIRECTORY
- #error "No introspection XML directory defined"
-#endif
-
#define STRING_ONE "StringOne"
#define STRING_TWO "StringTwo"
@@ -25,6 +21,40 @@
#define NONE_REPLY_STRING "NoneMethod"
+const gchar *test_interface_One = \
+""
+" "
+" "
+" "
+" "
+" "
+" "
+" "
+" "
+" "
+" "
+" "
+" "
+" "
+"";
+
+const gchar *test_interface_Two = \
+""
+" "
+" "
+" "
+" "
+" "
+" "
+" "
+" "
+" "
+" "
+" "
+" "
+" "
+"";
+
typedef struct _AnObject
{
gchar *astring;
@@ -219,23 +249,25 @@ int main (int argc, char **argv)
dbus_error_init (&error);
main_loop = g_main_loop_new(NULL, FALSE);
bus = dbus_bus_get (DBUS_BUS_SESSION, &error);
- dbus_connection_setup_with_g_main(bus, g_main_context_default());
+ atspi_dbus_connection_setup_with_g_main(bus, g_main_context_default());
- cnx = droute_new (bus, TEST_INTROSPECTION_DIRECTORY);
+ cnx = droute_new (bus);
path = droute_add_one (cnx, TEST_OBJECT_PATH, object);
droute_path_add_interface (path,
TEST_INTERFACE_ONE,
+ test_interface_One,
test_methods_one,
test_properties);
droute_path_add_interface (path,
TEST_INTERFACE_TWO,
+ test_interface_Two,
test_methods_two,
test_properties);
g_idle_add (do_tests_func, NULL);
- g_main_run(main_loop);
+ g_main_loop_run(main_loop);
if (success)
return 0;
else