~macslow/unity8/fix-snap-decision-proxy-model-hack

« back to all changes in this revision

Viewing changes to tests/mocks/Unity/Notifications/MockNotification.cpp

  • Committer: Mirco Müller
  • Date: 2015-01-22 14:25:47 UTC
  • Revision ID: mirco.mueller@ubuntu.com-20150122142547-jefr3yzld0yyam0l
Avoid emitting signal completed in the MockNotification, so notifications don't get removed from the model and can still be acted upon/tested further... some test-order reshuffle done.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include "MockNotification.h"
21
21
 
 
22
#include <QDebug>
 
23
 
22
24
struct MockNotificationPrivate {
23
25
    int id;
24
26
    QString summary;
163
165
void MockNotification::invokeAction(const QString &action) {
164
166
    for(int i=0; i<p->actions.size(); i++) {
165
167
        if(p->actions[i] == action) {
166
 
            Q_EMIT completed(p->id);
167
168
            Q_EMIT actionInvoked(action);
 
169
            qDebug() << "Info: invoked action" << action;
168
170
            return;
169
171
        }
170
172
    }