~ken-vandine/ubuntu/precise/folks/precise

« back to all changes in this revision

Viewing changes to tests/eds/add-contacts-stress-test.vala

  • Committer: Package Import Robot
  • Author(s): Rodrigo Moya
  • Date: 2011-09-08 12:26:07 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: package-import@ubuntu.com-20110908122607-g8fdqcpxlbxcn5q0
Tags: 0.6.2-0ubuntu1
* New upstream release
* debian/control:
  - Bump vala build dependency
* debian/libfolks25.symbols:
* debian/libfolks-eds25.symbols:
  - Updated symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
      var store = BackendStore.dup ();
92
92
      yield store.prepare ();
93
93
      this._aggregator = new IndividualAggregator ();
94
 
      this._aggregator.individuals_changed.connect
 
94
      this._aggregator.individuals_changed_detailed.connect
95
95
          (this._individuals_changed_cb);
96
96
      try
97
97
        {
142
142
       }
143
143
    }
144
144
 
145
 
  private void _individuals_changed_cb
146
 
      (Set<Individual> added,
147
 
       Set<Individual> removed,
148
 
       string? message,
149
 
       Persona? actor,
150
 
       GroupDetails.ChangeReason reason)
 
145
  private void _individuals_changed_cb (
 
146
       MultiMap<Individual?, Individual?> changes)
151
147
    {
 
148
      var added = changes.get_values ();
 
149
      var removed = changes.get_keys ();
 
150
 
152
151
      foreach (var i in added)
153
152
        {
 
153
          assert (i != null);
 
154
 
154
155
          assert (this._contacts_found.lookup (i.full_name) == false);
155
156
          this._contacts_found.replace (i.full_name, true);
156
157
        }
157
158
 
158
 
      assert (removed.size == 0);
 
159
      assert (removed.size == 1);
 
160
 
 
161
      foreach (var i in removed)
 
162
        {
 
163
          assert (i == null);
 
164
        }
159
165
 
160
166
      this._exit_if_all_contacts_found ();
161
167
    }