~ken-vandine/ubuntu/precise/folks/precise

« back to all changes in this revision

Viewing changes to tests/telepathy/individual-retrieval.c

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-03-18 16:49:27 UTC
  • mfrom: (1.2.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110318164927-ho97ckhsq73glhm4
Tags: 0.4.1-0ubuntu1
* New upstream release
  - Fixed crasher when reconnecting a Telepathy account

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* individual-retrieval.c generated by valac 0.11.6, the Vala compiler
 
1
/* individual-retrieval.c generated by valac 0.11.7, the Vala compiler
2
2
 * generated from individual-retrieval.vala, do not modify */
3
3
 
4
4
 
197
197
IndividualRetrievalTests* individual_retrieval_tests_construct (GType object_type) {
198
198
        IndividualRetrievalTests * self = NULL;
199
199
        TpTestBackend* _tmp0_ = NULL;
200
 
        TpTestBackend* _tmp1_;
201
 
        GeeHashSet* _tmp2_ = NULL;
202
 
        GeeHashSet* _tmp3_;
 
200
        GeeHashSet* _tmp1_ = NULL;
 
201
        gchar* _tmp2_;
 
202
        gchar* prefix;
 
203
        gchar* _tmp3_;
203
204
        gchar* _tmp4_;
204
 
        gchar* prefix;
205
205
        gchar* _tmp5_;
206
206
        gchar* _tmp6_;
207
207
        gchar* _tmp7_;
210
210
        gchar* _tmp10_;
211
211
        gchar* _tmp11_;
212
212
        gchar* _tmp12_;
213
 
        const gchar* _tmp13_ = NULL;
 
213
        gchar* _tmp13_;
 
214
        gchar* _tmp14_;
 
215
        gchar* _tmp15_;
 
216
        gchar* _tmp16_;
 
217
        gchar* _tmp17_;
 
218
        gchar* _tmp18_;
 
219
        const gchar* _tmp19_ = NULL;
214
220
        self = (IndividualRetrievalTests*) folks_test_case_construct (object_type, "IndividualRetrieval");
215
221
        _tmp0_ = tp_test_backend_new ();
216
 
        _tmp1_ = _tmp0_;
217
222
        _g_object_unref0 (self->priv->tp_backend);
218
 
        self->priv->tp_backend = _tmp1_;
219
 
        _tmp2_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, g_str_hash, g_str_equal);
220
 
        _tmp3_ = _tmp2_;
 
223
        self->priv->tp_backend = _tmp0_;
 
224
        _tmp1_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, g_str_hash, g_str_equal);
221
225
        _g_object_unref0 (self->priv->default_individuals);
222
 
        self->priv->default_individuals = _tmp3_;
223
 
        _tmp4_ = g_strdup (self->priv->individual_id_prefix);
224
 
        prefix = _tmp4_;
225
 
        _tmp5_ = g_strconcat (prefix, "travis@example.com", NULL);
226
 
        gee_abstract_collection_add ((GeeAbstractCollection*) self->priv->default_individuals, _tmp5_);
227
 
        _g_free0 (_tmp5_);
228
 
        _tmp6_ = g_strconcat (prefix, "olivier@example.com", NULL);
 
226
        self->priv->default_individuals = _tmp1_;
 
227
        _tmp2_ = g_strdup (self->priv->individual_id_prefix);
 
228
        prefix = _tmp2_;
 
229
        _tmp3_ = g_strconcat (prefix, "travis@example.com", NULL);
 
230
        _tmp4_ = _tmp3_;
 
231
        gee_abstract_collection_add ((GeeAbstractCollection*) self->priv->default_individuals, _tmp4_);
 
232
        _g_free0 (_tmp4_);
 
233
        _tmp5_ = g_strconcat (prefix, "olivier@example.com", NULL);
 
234
        _tmp6_ = _tmp5_;
229
235
        gee_abstract_collection_add ((GeeAbstractCollection*) self->priv->default_individuals, _tmp6_);
230
236
        _g_free0 (_tmp6_);
231
237
        _tmp7_ = g_strconcat (prefix, "guillaume@example.com", NULL);
232
 
        gee_abstract_collection_add ((GeeAbstractCollection*) self->priv->default_individuals, _tmp7_);
233
 
        _g_free0 (_tmp7_);
234
 
        _tmp8_ = g_strconcat (prefix, "sjoerd@example.com", NULL);
 
238
        _tmp8_ = _tmp7_;
235
239
        gee_abstract_collection_add ((GeeAbstractCollection*) self->priv->default_individuals, _tmp8_);
236
240
        _g_free0 (_tmp8_);
237
 
        _tmp9_ = g_strconcat (prefix, "christian@example.com", NULL);
238
 
        gee_abstract_collection_add ((GeeAbstractCollection*) self->priv->default_individuals, _tmp9_);
239
 
        _g_free0 (_tmp9_);
240
 
        _tmp10_ = g_strconcat (prefix, "wim@example.com", NULL);
 
241
        _tmp9_ = g_strconcat (prefix, "sjoerd@example.com", NULL);
 
242
        _tmp10_ = _tmp9_;
241
243
        gee_abstract_collection_add ((GeeAbstractCollection*) self->priv->default_individuals, _tmp10_);
242
244
        _g_free0 (_tmp10_);
243
 
        _tmp11_ = g_strconcat (prefix, "helen@example.com", NULL);
244
 
        gee_abstract_collection_add ((GeeAbstractCollection*) self->priv->default_individuals, _tmp11_);
245
 
        _g_free0 (_tmp11_);
246
 
        _tmp12_ = g_strconcat (prefix, "geraldine@example.com", NULL);
 
245
        _tmp11_ = g_strconcat (prefix, "christian@example.com", NULL);
 
246
        _tmp12_ = _tmp11_;
247
247
        gee_abstract_collection_add ((GeeAbstractCollection*) self->priv->default_individuals, _tmp12_);
248
248
        _g_free0 (_tmp12_);
 
249
        _tmp13_ = g_strconcat (prefix, "wim@example.com", NULL);
 
250
        _tmp14_ = _tmp13_;
 
251
        gee_abstract_collection_add ((GeeAbstractCollection*) self->priv->default_individuals, _tmp14_);
 
252
        _g_free0 (_tmp14_);
 
253
        _tmp15_ = g_strconcat (prefix, "helen@example.com", NULL);
 
254
        _tmp16_ = _tmp15_;
 
255
        gee_abstract_collection_add ((GeeAbstractCollection*) self->priv->default_individuals, _tmp16_);
 
256
        _g_free0 (_tmp16_);
 
257
        _tmp17_ = g_strconcat (prefix, "geraldine@example.com", NULL);
 
258
        _tmp18_ = _tmp17_;
 
259
        gee_abstract_collection_add ((GeeAbstractCollection*) self->priv->default_individuals, _tmp18_);
 
260
        _g_free0 (_tmp18_);
249
261
        folks_test_case_add_test ((FolksTestCase*) self, "aggregator", _individual_retrieval_tests_test_aggregator_folks_test_case_test_method, self);
250
262
        folks_test_case_add_test ((FolksTestCase*) self, "aggregator:add", _individual_retrieval_tests_test_aggregator_add_folks_test_case_test_method, self);
251
 
        _tmp13_ = g_getenv ("FOLKS_TEST_VALGRIND");
252
 
        if (_tmp13_ != NULL) {
 
263
        _tmp19_ = g_getenv ("FOLKS_TEST_VALGRIND");
 
264
        if (_tmp19_ != NULL) {
253
265
                self->priv->_test_timeout = 10;
254
266
        }
255
267
        _g_free0 (prefix);
405
417
        GeeHashSet* _tmp1_ = NULL;
406
418
        FolksIndividualAggregator* _tmp5_ = NULL;
407
419
        gint _tmp6_;
408
 
        FolksIndividualAggregator* _tmp7_;
409
420
        g_return_if_fail (self != NULL);
410
421
        _data1_ = g_slice_new0 (Block1Data);
411
422
        _data1_->_ref_count_ = 1;
442
453
        g_main_loop_run (_data1_->main_loop);
443
454
        _tmp6_ = gee_collection_get_size ((GeeCollection*) _data1_->expected_individuals);
444
455
        g_assert (_tmp6_ == 0);
445
 
        _tmp7_ = NULL;
446
456
        _g_object_unref0 (_data1_->aggregator);
447
 
        _data1_->aggregator = _tmp7_;
 
457
        _data1_->aggregator = NULL;
448
458
        block1_data_unref (_data1_);
449
459
        _data1_ = NULL;
450
460
}
701
711
        GeeHashSet* _tmp1_ = NULL;
702
712
        FolksIndividualAggregator* _tmp2_ = NULL;
703
713
        gint _tmp3_;
704
 
        FolksIndividualAggregator* _tmp4_;
705
714
        g_return_if_fail (self != NULL);
706
715
        _data2_ = g_slice_new0 (Block2Data);
707
716
        _data2_->_ref_count_ = 1;
721
730
        g_main_loop_run (_data2_->main_loop);
722
731
        _tmp3_ = gee_collection_get_size ((GeeCollection*) _data2_->added_individuals);
723
732
        g_assert (_tmp3_ == 0);
724
 
        _tmp4_ = NULL;
725
733
        _g_object_unref0 (_data2_->aggregator);
726
 
        _data2_->aggregator = _tmp4_;
 
734
        _data2_->aggregator = NULL;
727
735
        block2_data_unref (_data2_);
728
736
        _data2_ = NULL;
729
737
}