mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Consolidate test class into a single file to make writing tests easier and quicker
git-svn-id: http://svn.osgeo.org/qgis/trunk@5217 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
855b3a95d2
commit
531dacbf81
@ -21,7 +21,7 @@ GLOBALCXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(GDAL_CFLAGS) $(QT_CXXFLAGS) $(P
|
|||||||
# Instruction for running the qt4 meta object compiler
|
# Instruction for running the qt4 meta object compiler
|
||||||
#
|
#
|
||||||
|
|
||||||
%.moc.cpp: %.h
|
%.moc.cpp: %.cpp
|
||||||
$(MOC) -o $@ $<
|
$(MOC) -o $@ $<
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -1,8 +1,17 @@
|
|||||||
#include <QtTest>
|
#include <QtTest>
|
||||||
#include <qgsapplication.h>
|
|
||||||
#include "testqgsapplication.h"
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
#include <QObject>
|
||||||
|
//header for class being tested
|
||||||
|
#include <qgsapplication.h>
|
||||||
|
|
||||||
|
class TestQgsApplication: public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT;
|
||||||
|
public:
|
||||||
|
private slots:
|
||||||
|
void authorsFilePath();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
void TestQgsApplication::authorsFilePath()
|
void TestQgsApplication::authorsFilePath()
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
#ifndef TESTQGSAPPLICATION_H
|
|
||||||
#define TESTQGSAPPLICATION_H
|
|
||||||
#include <QtTest/QtTest>
|
|
||||||
#include <QObject>
|
|
||||||
|
|
||||||
class TestQgsApplication: public QObject
|
|
||||||
{
|
|
||||||
Q_OBJECT;
|
|
||||||
public:
|
|
||||||
private slots:
|
|
||||||
void authorsFilePath();
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
x
Reference in New Issue
Block a user