Changeset 3356

Show
Ignore:
Timestamp:
06/13/08 14:13:35 (4 months ago)
Author:
dgollub
Message:

Port proxy testunit to OSyncPluginConfig API. This fixes the build, unit
itself is still broken since mock-sync isn't yet ported.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tests/client-tests/check_proxy.c

    r3324 r3356  
    102102        fail_unless(error == NULL, NULL); 
    103103         
    104         char *config = g_strdup("<config><directory><path>data1</path><objtype>file</objtype><objformat>mockformat1</objformat></directory></config>"); 
     104        OSyncPluginConfig *config = simple_plugin_config(NULL, "data1", "mockformat1", NULL); 
    105105        fail_unless(osync_client_proxy_initialize(proxy, initialize_callback, GINT_TO_POINTER(1), testbed, testbed, "mock-sync", "test", testbed, config, &error), NULL); 
    106         g_free(config); 
     106        osync_plugin_config_unref(config); 
    107107 
    108108        fail_unless(error == NULL, NULL); 
     
    144144        fail_unless(error == NULL, NULL); 
    145145         
    146         char *config = g_strdup("<config><directory><path>data1</path><objtype>file</objtype><objformat>mockformat1</objformat></directory></config>"); 
     146        OSyncPluginConfig *config = simple_plugin_config(NULL, "data1", "mockformat1", NULL); 
    147147        fail_unless(osync_client_proxy_initialize(proxy, initialize_callback, GINT_TO_POINTER(1), testbed, testbed, "mock-sync", "test", testbed, config, &error), NULL); 
    148         g_free(config); 
     148        osync_plugin_config_unref(config); 
    149149 
    150150        fail_unless(error == NULL, NULL); 
     
    203203        fail_unless(error == NULL, NULL); 
    204204         
    205         char *config = g_strdup("<config><directory><path>data1</path><objtype>file</objtype><objformat>mockformat1</objformat></directory></config>"); 
     205        OSyncPluginConfig *config = simple_plugin_config(NULL, "data1", "mockformat1", NULL); 
    206206        fail_unless(osync_client_proxy_initialize(proxy, initialize_callback, GINT_TO_POINTER(1), testbed, testbed, "mock-sync", "test", testbed, config, &error), NULL); 
    207         g_free(config); 
     207        osync_plugin_config_unref(config); 
    208208        fail_unless(error == NULL, NULL); 
    209209