2010-03-24 00:11:46 +01:00
|
|
|
/* This file is part of Clementine.
|
|
|
|
|
|
|
|
Clementine 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 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Clementine is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with Clementine. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2010-03-03 01:33:31 +01:00
|
|
|
#ifndef METATYPES_ENV_H
|
|
|
|
#define METATYPES_ENV_H
|
|
|
|
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
|
|
|
|
#include <QMetaType>
|
2010-03-24 20:05:49 +01:00
|
|
|
#include <QModelIndex>
|
2010-03-03 01:33:31 +01:00
|
|
|
|
2010-05-10 23:50:31 +02:00
|
|
|
#include "core/song.h"
|
2010-06-15 15:24:17 +02:00
|
|
|
#include "core/songloader.h"
|
2010-05-10 23:50:31 +02:00
|
|
|
#include "library/directory.h"
|
2010-03-03 01:33:31 +01:00
|
|
|
|
|
|
|
class MetatypesEnvironment : public ::testing::Environment {
|
|
|
|
public:
|
|
|
|
void SetUp() {
|
2010-04-04 15:17:07 +02:00
|
|
|
qRegisterMetaType<Directory>("Directory");
|
2010-03-03 01:33:31 +01:00
|
|
|
qRegisterMetaType<DirectoryList>("DirectoryList");
|
2010-04-04 15:17:07 +02:00
|
|
|
qRegisterMetaType<Subdirectory>("Subdirectory");
|
|
|
|
qRegisterMetaType<SubdirectoryList>("SubdirectoryList");
|
2010-03-03 01:33:31 +01:00
|
|
|
qRegisterMetaType<SongList>("SongList");
|
2010-03-24 20:05:49 +01:00
|
|
|
qRegisterMetaType<QModelIndex>("QModelIndex");
|
2010-06-15 15:24:17 +02:00
|
|
|
qRegisterMetaType<SongLoader::Result>("SongLoader::Result");
|
2010-03-03 01:33:31 +01:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RESOURCES_ENV_H
|