~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to camel/tests/folder/test11.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
#define d(x)
19
19
 
20
 
#define ARRAY_LEN(x) (sizeof(x)/sizeof(x[0]))
21
 
 
22
20
static const gchar *local_drivers[] = { "local" };
23
21
 
24
22
static CamelSession *session;
164
162
        fi = camel_store_get_folder_info(store, "", CAMEL_STORE_FOLDER_INFO_RECURSIVE, ex);
165
163
        check_msg(!camel_exception_is_set(ex), "%s", camel_exception_get_description(ex));
166
164
        check(fi != NULL);
167
 
        check_fi(fi, fi_list_1, ARRAY_LEN(fi_list_1));
 
165
        check_fi(fi, fi_list_1, G_N_ELEMENTS (fi_list_1));
168
166
        camel_test_pull();
169
167
 
170
168
        camel_test_push("folder info, flat");
171
169
        fi = camel_store_get_folder_info(store, "", 0, ex);
172
170
        check_msg(!camel_exception_is_set(ex), "%s", camel_exception_get_description(ex));
173
171
        check(fi != NULL);
174
 
        check_fi(fi, fi_list_2, ARRAY_LEN(fi_list_2));
 
172
        check_fi(fi, fi_list_2, G_N_ELEMENTS (fi_list_2));
175
173
        camel_test_pull();
176
174
 
177
175
        camel_test_push("folder info, recursive, non root");
178
176
        fi = camel_store_get_folder_info(store, "testbox", CAMEL_STORE_FOLDER_INFO_RECURSIVE, ex);
179
177
        check_msg(!camel_exception_is_set(ex), "%s", camel_exception_get_description(ex));
180
178
        check(fi != NULL);
181
 
        check_fi(fi, fi_list_3, ARRAY_LEN(fi_list_3));
 
179
        check_fi(fi, fi_list_3, G_N_ELEMENTS (fi_list_3));
182
180
        camel_test_pull();
183
181
 
184
182
        check_unref(store, 1);