Changeset 3357

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

Fixed build of unittest "sync" by porting to OSyncPluginConfig API.
TODO: Test requires porting of mock-sync.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tests/sync-tests/check_sync.c

    r3292 r3357  
    22542254         
    22552255        OSyncMember *member1 = osync_group_nth_member(group, 0); 
    2256         osync_member_set_config(member1, "<config><directory><path>file-1</path><objtype>mockobjtype1</objtype><objformat>mockformat1</objformat></directory><directory><path>file2-1</path><objtype>mockobjtype2</objtype><objformat>mockformat2</objformat></directory><directory><path>file3-1</path><objtype>mockobjtype3</objtype><objformat>mockformat3</objformat></directory></config>"); 
     2256        OSyncPluginConfig *config1 = simple_plugin_config(NULL, "file-1", "mockformat1", NULL); 
     2257        simple_plugin_config(config1, "file2-1", "mockformat2", NULL); 
     2258        simple_plugin_config(config1, "file3-1", "mockformat3", NULL); 
     2259        osync_member_set_config(member1, config1); 
     2260        osync_plugin_config_unref(config1); 
     2261 
    22572262        OSyncMember *member2 = osync_group_nth_member(group, 1); 
    2258         osync_member_set_config(member2, "<config><directory><path>file-2</path><objtype>mockobjtype1</objtype><objformat>mockformat1</objformat></directory><directory><path>file2-2</path><objtype>mockobjtype2</objtype><objformat>mockformat2</objformat></directory><directory><path>file3-2</path><objtype>mockobjtype3</objtype><objformat>mockformat3</objformat></directory></config>"); 
     2263        OSyncPluginConfig *config2 = simple_plugin_config(NULL, "file-2", "mockformat1", NULL); 
     2264        simple_plugin_config(config2, "file2-2", "mockformat2", NULL); 
     2265        simple_plugin_config(config2, "file3-2", "mockformat3", NULL); 
     2266        osync_member_set_config(member2, config2); 
     2267        osync_plugin_config_unref(config2); 
    22592268         
    22602269        /* Check that we dont have any discovered objtypes */ 
     
    24522461         
    24532462        OSyncMember *member1 = osync_group_nth_member(group, 0); 
    2454         osync_member_set_config(member1, "<config><directory><path>file-1</path><objtype>mockobjtype1</objtype><objformat>mockformat1</objformat></directory><directory><path>file2-1</path><objtype>mockobjtype2</objtype><objformat>mockformat2</objformat></directory><directory><path>file3-1</path><objtype>mockobjtype3</objtype><objformat>mockformat3</objformat></directory></config>"); 
     2463        OSyncPluginConfig *config1 = simple_plugin_config(NULL, "file-1", "mockformat1", NULL); 
     2464        simple_plugin_config(config1, "file2-1", "mockformat2", NULL); 
     2465        simple_plugin_config(config1, "file3-1", "mockformat3", NULL); 
     2466        osync_member_set_config(member1, config1); 
     2467        osync_plugin_config_unref(config1); 
     2468 
    24552469        OSyncMember *member2 = osync_group_nth_member(group, 1); 
    2456         osync_member_set_config(member2, "<config><directory><path>file-2</path><objtype>mockobjtype1</objtype><objformat>mockformat1</objformat></directory></config>"); 
     2470        OSyncPluginConfig *config2 = simple_plugin_config(NULL, "file-2", "mockformat1", NULL); 
     2471        osync_member_set_config(member2, config2); 
     2472        osync_plugin_config_unref(config2); 
    24572473         
    24582474        /* Check that we dont have any discovered objtypes */