mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
refs #432, unit test for originator, in same step cleaned unit test code a bit (headers, ...)
This commit is contained in:
43
tests/blackmisc/testoriginator.h
Normal file
43
tests/blackmisc/testoriginator.h
Normal file
@@ -0,0 +1,43 @@
|
||||
/* Copyright (C) 2014
|
||||
* swift project community / contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKMISCTEST_TESTORIGINATOR_H
|
||||
#define BLACKMISCTEST_TESTORIGINATOR_H
|
||||
|
||||
#include "blackmisc/originatoraware.h"
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
namespace BlackMiscTest
|
||||
{
|
||||
//! Testing orignator
|
||||
class CTestOriginator : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CTestOriginator(QObject *parent = nullptr) : QObject(parent) {}
|
||||
|
||||
private slots:
|
||||
void originatorBasics();
|
||||
};
|
||||
|
||||
//! Test originator aware
|
||||
class CTestOriginatorAware : public BlackMisc::COriginatorAware
|
||||
{
|
||||
public:
|
||||
//! Constructor
|
||||
CTestOriginatorAware(QObject *nameObject);
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user