1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-14 18:35:16 +01:00
Clementine-audio-player-Mac.../tests/metatypes_env.h

43 lines
1.3 KiB
C
Raw Normal View History

/* 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
#include "core/song.h"
#include "core/songloader.h"
#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");
qRegisterMetaType<SongLoader::Result>("SongLoader::Result");
2010-03-03 01:33:31 +01:00
}
};
#endif // RESOURCES_ENV_H