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

« back to all changes in this revision

Viewing changes to tests/tracker/set-duplicate-email.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:
78
78
      var store = BackendStore.dup ();
79
79
      yield store.prepare ();
80
80
      this._aggregator = new IndividualAggregator ();
81
 
      this._aggregator.individuals_changed.connect
 
81
      this._aggregator.individuals_changed_detailed.connect
82
82
          (this._individuals_changed_cb);
83
83
      try
84
84
        {
101
101
        }
102
102
    }
103
103
 
104
 
  private void _individuals_changed_cb
105
 
      (Set<Individual> added,
106
 
       Set<Individual> removed,
107
 
       string? message,
108
 
       Persona? actor,
109
 
       GroupDetails.ChangeReason reason)
 
104
  private void _individuals_changed_cb (
 
105
       MultiMap<Individual?, Individual?> changes)
110
106
    {
 
107
      var added = changes.get_values ();
 
108
      var removed = changes.get_keys ();
 
109
 
111
110
      foreach (var i in added)
112
111
        {
 
112
          assert (i != null);
 
113
 
113
114
          if (i.full_name == this._persona_fullname_1)
114
115
            {
115
116
              this._reset_email_address (i);
116
117
            }
117
118
        }
118
 
      assert (removed.size == 0);
 
119
 
 
120
      assert (removed.size == 1);
 
121
 
 
122
      foreach (var i in removed)
 
123
        {
 
124
          assert (i == null);
 
125
        }
119
126
    }
120
127
 
121
128
  private void _reset_email_address (Individual i)