Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure

testStelFileMgr.hpp

00001 /*
00002  * Stellarium
00003  * Copyright (C) 2009 Matthew Gates
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA  02110-1335, USA.
00018  */
00019 
00020 #ifndef _TESTSTELFILEMGR_HPP_
00021 #define _TESTSTELFILEMGR_HPP_
00022 
00023 #include <QObject>
00024 #include <QString>
00025 #include <QStringList>
00026 #include <QtTest>
00027 
00028 class StelFileMgr;
00029 
00030 class TestStelFileMgr : public QObject
00031 {
00032 Q_OBJECT
00033 private slots:
00034     void initTestCase();
00035     void cleanupTestCase();
00036 
00037     void testFindFileVanilla();
00038     void testFindFileVanillaAbs();
00039     void testFindFileFile();
00040     void testFindFileFileAbs();
00041     void testFindFileDir();
00042     void testFindFileDirAbs();
00043     void testFindFileNew();
00044     void testFindFileNewAbs();
00045     void testListContentsVanilla();
00046     void testListContentsVanillaAbs();
00047     void testListContentsFile();
00048     void testListContentsFileAbs();
00049     void testListContentsDir();
00050     void testListContentsDirAbs();
00051 
00052 private:
00053     QString workingDir;
00054     QString partialPath1;
00055     QString partialPath2;
00056     QStringList testDirs;
00057     QStringList testFiles;
00058 };
00059 
00060 #endif // _TESTSTELFILEMGR_HPP_
00061 
Generated on Thu Jan 31 14:05:42 2013 for Stellarium by  doxygen 1.6.3