mirror of https://github.com/cutefishos/appmotor
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.7 KiB
C++
68 lines
1.7 KiB
C++
/***************************************************************************
|
|
**
|
|
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
|
** All rights reserved.
|
|
** Contact: Nokia Corporation (directui@nokia.com)
|
|
**
|
|
** This file is part of applauncherd
|
|
**
|
|
** If you have questions regarding the use of this file, please contact
|
|
** Nokia at directui@nokia.com.
|
|
**
|
|
** This library is free software; you can redistribute it and/or
|
|
** modify it under the terms of the GNU Lesser General Public
|
|
** License version 2.1 as published by the Free Software Foundation
|
|
** and appearing in the file LICENSE.LGPL included in the packaging
|
|
** of this file.
|
|
**
|
|
****************************************************************************/
|
|
|
|
#include "ut_ebooster.h"
|
|
#include "ebooster.h"
|
|
#include <errno.h>
|
|
|
|
Ut_EBooster::Ut_EBooster() :
|
|
m_subject(new EBooster)
|
|
{}
|
|
|
|
Ut_EBooster::~Ut_EBooster()
|
|
{}
|
|
|
|
void Ut_EBooster::initTestCase()
|
|
{}
|
|
|
|
void Ut_EBooster::cleanupTestCase()
|
|
{}
|
|
|
|
void Ut_EBooster::testSocketName()
|
|
{
|
|
QVERIFY(EBooster::socketName() == EBooster::m_socketId);
|
|
QVERIFY(m_subject->socketId() == EBooster::m_socketId);
|
|
}
|
|
|
|
void Ut_EBooster::testType()
|
|
{
|
|
QVERIFY(EBooster::type() == 'e');
|
|
QVERIFY(m_subject->boosterType() == 'e');
|
|
}
|
|
|
|
void Ut_EBooster::testPreload()
|
|
{
|
|
QVERIFY(m_subject->preload());
|
|
}
|
|
|
|
void Ut_EBooster::testTemporaryProcessName()
|
|
{
|
|
QVERIFY(EBooster::temporaryProcessName() == EBooster::m_temporaryProcessName);
|
|
QVERIFY(m_subject->temporaryProcessName() == EBooster::m_temporaryProcessName);
|
|
QVERIFY(m_subject->boosterTemporaryProcessName() == EBooster::m_temporaryProcessName);
|
|
}
|
|
|
|
|
|
void Ut_EBooster::testLaunchProcessWithBadArg()
|
|
{
|
|
QVERIFY(m_subject->launchProcess() == EXIT_FAILURE);
|
|
}
|
|
|
|
QTEST_APPLESS_MAIN(Ut_EBooster);
|