summaryrefslogtreecommitdiff
path: root/tests/guidevtest/unittestwaitforx.cpp
blob: a9dd3cb7dc2a87aa6d293a40ebefed9500ff2b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "unittests.h"
#include "serialport.h"



/* Public methods */

UnitTestWaitForX::UnitTestWaitForX(Logger *logger, QObject *parent)
    : UnitTestBase(UnitTestBase::WaitForXUnitId, logger, parent)
{
    m_name = QString(tr("WaitForX Test"));
    m_description = QString(tr("\"WaitForX Test\" ..."));
}

/* Public slots */

void UnitTestWaitForX::start(bool first)
{
    Q_UNUSED(first);

    QString header(tr("\n[ Test: ID#%1, Name: %2 ]\n%3\n\n"));
    header = header
            .arg(m_id)
            .arg(m_name)
            .arg(QString("timestamp"));/*.arg(UnitTestManager::timestamp());*/

    m_logger->addContent(header);

    ////

    emit finished();
}