~online-accounts/libaccounts-glib/sourcebuild

« back to all changes in this revision

Viewing changes to tests/test-process.c

  • Committer: Alberto Mardegan
  • Date: 2012-01-13 10:10:09 UTC
  • mfrom: (129.2.13)
  • Revision ID: git-v1:c321c8d3461062aaeb2c4df984c2b355a1044c28
Merge branch 'stringlist' into ubuntu

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
gboolean test_create2 (TestArgs *args)
156
156
{
157
157
    GValue value = { 0 };
 
158
    const gchar *numbers[] = {
 
159
        "one",
 
160
        "two",
 
161
        "three",
 
162
        NULL
 
163
    };
158
164
 
159
165
    manager = ag_manager_new ();
160
166
 
175
181
    ag_account_set_value (account, "string", &value);
176
182
    g_value_unset (&value);
177
183
 
 
184
    g_value_init (&value, G_TYPE_STRV);
 
185
    g_value_set_boxed (&value, numbers);
 
186
    ag_account_set_value (account, "numbers", &value);
 
187
    g_value_unset (&value);
 
188
 
178
189
    ag_account_set_enabled (account, TRUE);
179
190
 
180
191
    /* also set some keys in one service */