~ubuntu-desktop/dee/ubuntu

« back to all changes in this revision

Viewing changes to tests/model-helper-clone3rows.c

  • Committer: Didier Roche
  • Date: 2012-01-12 16:14:54 UTC
  • mfrom: (130.1.206 MASTER)
  • mto: (250.1.1 ubuntu)
  • mto: This revision was merged to the branch mainline in revision 218.
  • Revision ID: didier.roche@canonical.com-20120112161454-31xl6hgcfngm6abi
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
  g_type_init (); 
36
36
  g_thread_init (NULL);
37
37
 
38
 
  model = dee_shared_model_new (argv[1]);
 
38
  g_set_prgname ("model-helper");
 
39
 
 
40
  if (argc == 2)
 
41
    model = dee_shared_model_new (argv[1]);
 
42
  else
 
43
    model = dee_shared_model_new_for_peer ((DeePeer*) dee_client_new (argv[1]));
39
44
  
40
45
  if (gtx_wait_for_signal (G_OBJECT (model), 100000, "notify::synchronized", NULL))
41
46
    g_error ("Helper model timed out waiting for 'ready' signal");
54
59
  g_assert_cmpint (dee_model_get_int32 (model, iter, 0), == , 2);
55
60
  g_assert_cmpstr (dee_model_get_string (model, iter, 1), == , "two");
56
61
  
 
62
  gtx_assert_last_unref (model);
 
63
  
57
64
  return 0;
58
65
}