~ubuntu-branches/ubuntu/quantal/kdepimlibs/quantal-proposed

« back to all changes in this revision

Viewing changes to akonadi/tests/collectionmovetest.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-05-24 02:37:35 UTC
  • mfrom: (1.1.45 upstream)
  • Revision ID: james.westby@ubuntu.com-20100524023735-pzdgb22z38mhikzi
Tags: 4:4.4.80-0ubuntu1
* New upstream beta release:
  - Switch to dpkg-source 3.0 (quilt) format
  - Bump KDE build-depends
  - Disable 02_increase_fail_timeout.diff
  - Update 03_hide_akonadi_progressbar.diff
  - Add shared-desktop-ontologies to build-depends
  - Update various install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
      fetch = new CollectionFetchJob( source, CollectionFetchJob::Recursive );
94
94
      AKVERIFYEXEC( fetch );
95
95
      QHash<Collection, Item::List> referenceData;
96
 
      foreach ( const Collection c, fetch->collections() ) {
 
96
      foreach ( const Collection &c, fetch->collections() ) {
97
97
        ItemFetchJob *job = new ItemFetchJob( c, this );
98
98
        AKVERIFYEXEC( job );
99
99
        referenceData.insert( c, job->items() );
130
130
        job->fetchScope().fetchFullPayload();
131
131
        AKVERIFYEXEC( job );
132
132
        QCOMPARE( job->items().count(), it.value().count() );
133
 
        foreach ( const Item item, job->items() ) {
 
133
        foreach ( const Item &item, job->items() ) {
134
134
          QVERIFY( it.value().contains( item ) );
135
135
          QVERIFY( item.hasPayload() );
136
136
        }