updated
[platform/core/uifw/at-spi2-atk.git] / test / stress-test.c
index fdc0f8e..d4a5feb 100644 (file)
@@ -2,7 +2,8 @@
  * AT-SPI - Assistive Technology Service Provider Interface
  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
  *
- * Copyright 2001 Sun Microsystems Inc.
+ * Copyright 2001, 2002 Sun Microsystems Inc.,
+ * Copyright 2001, 2002 Ximian, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -20,6 +21,7 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#include <unistd.h>
 #include <stdlib.h>
 #include "../cspi/spi-private.h" /* A hack for now */
 #include <glib-object.h>
@@ -27,7 +29,8 @@
 #include <atk/atk.h>
 #include <atk/atknoopobject.h>
 #include <bonobo-activation/bonobo-activation-register.h>
-#include <libspi.h>
+#include <bonobo/bonobo-main.h>
+#include <libspi/libspi.h>
 
 int
 main (int argc, char **argv)
@@ -73,7 +76,7 @@ main (int argc, char **argv)
 
        source = spi_accessible_new (atko);
        
-       e.type = "focus:";
+       e.type = "object:test";
        e.source = BONOBO_OBJREF (source);
        e.detail1 = 0;
        e.detail2 = 0;
@@ -81,7 +84,7 @@ main (int argc, char **argv)
        timer = g_timer_new ();
        g_timer_start (timer);
 
-       for (i = 0; i < 10000; ++i) {
+       for (i = 0; i < 500; ++i) {
                Accessibility_Accessible_ref (e.source, &ev);
                Accessibility_Registry_notifyEvent (registry, &e, &ev);
        }