test: use shared empty type

This commit is contained in:
Michele Caini
2023-11-06 08:51:03 +01:00
parent ba87e22af0
commit f3bd033bf6

View File

@@ -11,8 +11,7 @@
#include <entt/entity/entity.hpp>
#include <entt/entity/storage.hpp>
#include "../common/config.h"
struct empty_type {};
#include "../common/empty.h"
template<typename Type>
struct StorageNoInstance: testing::Test {
@@ -49,7 +48,7 @@ struct StorageNoInstance: testing::Test {
template<typename Type>
using StorageNoInstanceDeathTest = StorageNoInstance<Type>;
using StorageNoInstanceTypes = ::testing::Types<empty_type, void>;
using StorageNoInstanceTypes = ::testing::Types<test::empty, void>;
TYPED_TEST_SUITE(StorageNoInstance, StorageNoInstanceTypes, );
TYPED_TEST_SUITE(StorageNoInstanceDeathTest, StorageNoInstanceTypes, );