Lines Matching refs:test
6 #define MY_TEST(test) (G_TYPE_CHECK_INSTANCE_CAST ((test), G_TYPE_TEST, GTest)) argument
7 #define MY_IS_TEST(test) (G_TYPE_CHECK_INSTANCE_TYPE ((test), G_TYPE_TEST)) argument
10 #define MY_TEST_GET_CLASS(test) (G_TYPE_INSTANCE_GET_CLASS ((test), G_TYPE_TEST, GTestClass)) argument
38 static void my_test_init (GTest * test);
98 my_test_init (GTest * test) in my_test_init() argument
101 test->id = static_id++; in my_test_init()
107 GTest *test; in my_test_dispose() local
109 test = MY_TEST (object); in my_test_dispose()
120 GTest *test; in my_test_get_property() local
122 test = MY_TEST (object); in my_test_get_property()
127 g_value_set_int (value, test->dummy); in my_test_get_property()
141 GTest *test; in my_test_set_property() local
143 test = MY_TEST (object); in my_test_set_property()
148 test->dummy = g_value_get_int (value); in my_test_set_property()
160 GTest *test; in dummy_notify() local
162 test = MY_TEST (object); in dummy_notify()
164 test->count++; in dummy_notify()
168 my_test_do_property (GTest * test) in my_test_do_property() argument
172 g_object_get (test, "dummy", &dummy, NULL); in my_test_do_property()
173 g_object_set (test, "dummy", dummy + 1, NULL); in my_test_do_property()
177 run_thread (GTest * test) in run_thread() argument
182 my_test_do_property (test); in run_thread()
185 g_print (".%c", 'a' + test->id); in run_thread()
209 GTest *test; in main() local
211 test = g_object_new (G_TYPE_TEST, NULL); in main()
212 g_array_append_val (test_objects, test); in main()
214 g_assert (test->count == test->dummy); in main()
215 g_signal_connect (test, "notify::dummy", G_CALLBACK (dummy_notify), NULL); in main()
224 GTest *test; in main() local
226 test = g_array_index (test_objects, GTest *, i); in main()
228 thread = g_thread_create ((GThreadFunc) run_thread, test, TRUE, NULL); in main()
247 GTest *test; in main() local
249 test = g_array_index (test_objects, GTest *, i); in main()
251 g_assert (test->count == test->dummy); in main()