- void receiveData(int i, const QString& s) { _spy->notify(std::make_pair(i, s)); }
- void receiveExtraData(int i, const QString& s) { _spy->notify(std::make_pair(-i, s.toUpper())); }
+ void receiveData(int i, const QString& s)
+ {
+ EXPECT_EQ(_expectedPeer, SignalProxy::current()->sourcePeer());
+ _spy->notify(std::make_pair(i, s));
+ }
+
+ void receiveExtraData(int i, const QString& s)
+ {
+ EXPECT_EQ(_expectedPeer, SignalProxy::current()->sourcePeer());
+ _spy->notify(std::make_pair(-i, s.toUpper()));
+ }