~unity-api-team/keeper/devel

« back to all changes in this revision

Viewing changes to tests/utils/keeper-dbusmock-fixture.h

  • Committer: Tarmac
  • Author(s): Charles Kerr
  • Date: 2016-12-19 09:02:29 UTC
  • mfrom: (119.2.18 untar)
  • Revision ID: tarmac-20161219090229-8g0g320tk87vdgde
Add untar.

Approved by Xavi Garcia, unity-api-1-bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
            bool all_done = true;
143
143
            for(const auto& properties : state) {
144
144
                const auto action = properties.value(KEY_ACTION);
 
145
                qInfo() << Q_FUNC_INFO << "action is" << action;
145
146
                bool task_done = (action == ACTION_CANCELLED) || (action == ACTION_FAILED) || (action == ACTION_COMPLETE);
146
147
                if (!task_done)
147
148
                    all_done = false;
160
161
        return uuid;
161
162
    }
162
163
 
 
164
    QString add_restore_choice(const QMap<QString,QVariant>& properties)
 
165
    {
 
166
        const auto uuid = QUuid::createUuid().toString();
 
167
        auto msg = mock_iface_->call(QStringLiteral("AddRestoreChoice"), uuid, properties);
 
168
        EXPECT_NE(QDBusMessage::ErrorMessage, msg.type()) << qPrintable(msg.errorMessage());
 
169
        return uuid;
 
170
    }
 
171
 
163
172
    void fail_next_helper_start()
164
173
    {
165
174
        auto msg = mock_iface_->call(QStringLiteral("FailNextHelperStart"));