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

« back to all changes in this revision

Viewing changes to camel/tests/folder/test3.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:
16
16
#include <camel/camel-folder-summary.h>
17
17
#include <camel/camel-mime-message.h>
18
18
 
19
 
#define ARRAY_LEN(x) (sizeof(x)/sizeof(x[0]))
20
 
 
21
19
static void
22
20
test_folder_search_sub(CamelFolder *folder, const gchar *expr, gint expected)
23
21
{
130
128
                j = 2;
131
129
 
132
130
        push("performing searches, expected %d", m);
133
 
        for (i=0;i<ARRAY_LEN(searches);i++) {
 
131
        for (i = 0; i < G_N_ELEMENTS (searches); i++) {
134
132
                push("running search %d: %s", i, searches[i].expr);
135
133
                test_folder_search(folder, searches[i].expr, searches[i].counts[j]);
136
134
                pull();
171
169
        /* todo: work out how to do imap/pop/nntp tests */
172
170
 
173
171
        /* we iterate over all stores we want to test, with indexing or indexing turned on or off */
174
 
        for (i=0;i<ARRAY_LEN(stores);i++) {
 
172
        for (i = 0; i < G_N_ELEMENTS (stores); i++) {
175
173
                gchar *name = stores[i];
176
174
                for (indexed = 0;indexed<2;indexed++) {
177
175
                        gchar *what = g_strdup_printf("folder search: %s (%sindexed)", name, indexed?"":"non-");