| 87 | | galago_init("check-libgalago", FALSE); |
|---|
| 88 | | fail_unless(make_dummy_person() != NULL, "Unable to create person"); |
|---|
| | 87 | GalagoPerson *person; |
|---|
| | 88 | |
|---|
| | 89 | galago_init("check-libgalago", TRUE); |
|---|
| | 90 | |
|---|
| | 91 | person = make_dummy_person(); |
|---|
| | 92 | fail_unless(person != NULL, "Unable to create person"); |
|---|
| | 93 | fail_unless(galago_object_get_dbus_path(GALAGO_OBJECT(person)) != NULL, |
|---|
| | 94 | "Object path not set on the new person"); |
|---|
| 94 | | galago_init("check-libgalago", FALSE); |
|---|
| 95 | | fail_unless(make_dummy_service() != NULL, "Unable to create service"); |
|---|
| | 100 | GalagoService *service; |
|---|
| | 101 | |
|---|
| | 102 | galago_init("check-libgalago", TRUE); |
|---|
| | 103 | |
|---|
| | 104 | service = make_dummy_service(); |
|---|
| | 105 | fail_unless(service != NULL, "Unable to create service"); |
|---|
| | 106 | fail_unless(galago_object_get_dbus_path(GALAGO_OBJECT(service)) != NULL, |
|---|
| | 107 | "Object path not set on the new service"); |
|---|
| 101 | | galago_init("check-libgalago", FALSE); |
|---|
| 102 | | fail_unless(make_dummy_account() != NULL, "Unable to create account"); |
|---|
| | 113 | GalagoAccount *account; |
|---|
| | 114 | |
|---|
| | 115 | galago_init("check-libgalago", TRUE); |
|---|
| | 116 | |
|---|
| | 117 | account = make_dummy_account(); |
|---|
| | 118 | fail_unless(account != NULL, "Unable to create account"); |
|---|
| | 119 | fail_unless(galago_object_get_dbus_path(GALAGO_OBJECT(account)) != NULL, |
|---|
| | 120 | "Object path not set on the new account"); |
|---|
| | 121 | } |
|---|
| | 122 | END_TEST |
|---|
| | 123 | |
|---|
| | 124 | START_TEST(test_create_presence) |
|---|
| | 125 | { |
|---|
| | 126 | GalagoPresence *presence; |
|---|
| | 127 | |
|---|
| | 128 | galago_init("check-libgalago", TRUE); |
|---|
| | 129 | |
|---|
| | 130 | presence = make_dummy_presence(); |
|---|
| | 131 | fail_unless(presence != NULL, "Unable to create presence"); |
|---|
| | 132 | fail_unless(galago_object_get_dbus_path(GALAGO_OBJECT(presence)) != NULL, |
|---|
| | 133 | "Object path not set on the new presence"); |
|---|