~jamesodhunt/libnih/file-watch-fix

« back to all changes in this revision

Viewing changes to nih-dbus-tool/tests/demarshal_factory.c

  • Committer: Scott James Remnant
  • Date: 2010-12-23 21:48:04 UTC
  • Revision ID: scott@netsplit.com-20101223214804-2fksyy7z6qey4277
* nih-dbus-tool/type.c (type_const, type_of): Add support for the
DBUS_TYPE_UNIX_FD type, with a C type of "int".
* nih-dbus-tool/tests/test_type.c (test_const, test_of): Check the types
are correct.
* nih-dbus-tool/tests/marshal_factory.c: Generate function for
unix_fd testing
* nih-dbus-tool/tests/marshal_code.h: Add header for generated function
* nih-dbus-tool/tests/test_marshal.c (test_marshal): Test the generator
and the generated function
* nih-dbus-tool/tests/demarshal_factory.c: Generate function for
unix_fd testing
* nih-dbus-tool/tests/demarshal_code.h: Add header for generated function
* nih-dbus-tool/tests/test_demarshal.c (test_demarshal): Test the
generator and the generated code
* nih-dbus-tool/tests/com.netsplit.Nih.Test.xml: Add methods, signal and
properties for testing.
* nih-dbus-tool/tests/com.netsplit.Nih.Test_impl.h: Add property
definition
* nih-dbus-tool/tests/com.netsplit.Nih.Test_impl.c (my_test_unix_fd_to_str)
(my_test_str_to_unix_fd, my_test_get_unix_fd)
(my_test_set_unix_fd): Test implementation.
* nih-dbus-tool/tests/test_com.netsplit.Nih.Test_object.c (test_unix_fd_to_str)
(test_str_to_unix_fd, test_new_unix_fd, test_get_unix_fd)
(test_set_unix_fd): Add methods to test the object implementation.
* nih-dbus-tool/tests/test_com.netsplit.Nih.Test_proxy.c (test_unix_fd_to_str)
(test_unix_fd_to_str_sync, test_str_to_unix_fd)
(test_str_to_unix_fd_sync, test_new_unix_fd, test_get_unix_fd)
(test_get_unix_fd_sync, test_set_unix_fd, test_set_unix_fd_sync): Add tests
for unix fds.
(test_get_all, test_get_all_sync): Add unix fd to tests.
* NEWS: Update

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *
3
3
 * tests/demarshal_factory.c - generate tests/demarshal_code.c
4
4
 *
5
 
 * Copyright © 2009 Scott James Remnant <scott@netsplit.com>.
6
 
 * Copyright © 2009 Canonical Ltd.
 
5
 * Copyright © 2010 Scott James Remnant <scott@netsplit.com>.
 
6
 * Copyright © 2010 Canonical Ltd.
7
7
 *
8
8
 * This program is free software; you can redistribute it and/or modify
9
9
 * it under the terms of the GNU General Public License version 2, as
174
174
                                                 DBUS_TYPE_STRING_AS_STRING
175
175
                                                 DBUS_TYPE_UINT32_AS_STRING
176
176
                                                 DBUS_DICT_ENTRY_END_CHAR_AS_STRING));
 
177
        demarshal_function ("unix_fd", DBUS_TYPE_UNIX_FD_AS_STRING);
177
178
 
178
179
        return 0;
179
180
}