2014-01-16 01:49:15 -07:00
|
|
|
/***************************************************************************
|
|
|
|
testqgsmacnative.cpp
|
|
|
|
--------------------------------------
|
|
|
|
Date : January 2014
|
|
|
|
Copyright : (C) 2014 by Larry Shaffer
|
|
|
|
Email : larrys at dakotacarto dot com
|
|
|
|
***************************************************************************
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
***************************************************************************/
|
2017-01-07 23:44:57 +01:00
|
|
|
|
|
|
|
#include "qgstest.h"
|
2014-01-16 01:49:15 -07:00
|
|
|
#include <QObject>
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
//header for class being tested
|
2017-01-07 23:44:57 +01:00
|
|
|
#include "qgsmacnative.h"
|
2014-01-16 01:49:15 -07:00
|
|
|
|
|
|
|
class TestQgsMacNative: public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void testGetRunningAppName();
|
|
|
|
};
|
|
|
|
|
|
|
|
void TestQgsMacNative::testGetRunningAppName()
|
|
|
|
{
|
2017-05-07 17:19:26 +10:00
|
|
|
QgsMacNative *macNative = new QgsMacNative();
|
2017-01-07 23:44:57 +01:00
|
|
|
QCOMPARE( QStringLiteral( "qgis_macnativetest" ), QString( macNative->currentAppLocalizedName() ) );
|
|
|
|
delete macNative;
|
2014-01-16 01:49:15 -07:00
|
|
|
}
|
|
|
|
|
2017-01-07 23:44:57 +01:00
|
|
|
QGSTEST_MAIN( TestQgsMacNative )
|
|
|
|
#include "testqgsmacnative.moc"
|