Browse Source

test: review process tests

Michele Caini 2 years ago
parent
commit
3b74db258e
1 changed files with 4 additions and 5 deletions
  1. 4 5
      test/entt/process/process.cpp

+ 4 - 5
test/entt/process/process.cpp

@@ -1,9 +1,8 @@
 #include <cstdint>
 #include <gtest/gtest.h>
+#include <common/empty.h>
 #include <entt/process/process.hpp>
 
-struct fake_delta {};
-
 template<typename Delta>
 struct fake_process: entt::process<fake_process<Delta>, Delta> {
     using process_type = entt::process<fake_process<Delta>, Delta>;
@@ -112,7 +111,7 @@ TEST(Process, Basics) {
 }
 
 TEST(Process, Succeeded) {
-    fake_process<fake_delta> process{};
+    fake_process<test::empty> process{};
 
     process.tick({});
     process.tick({});
@@ -152,7 +151,7 @@ TEST(Process, Fail) {
 }
 
 TEST(Process, Data) {
-    fake_process<fake_delta> process{};
+    fake_process<test::empty> process{};
     int value = 0;
 
     process.tick({});
@@ -193,7 +192,7 @@ TEST(Process, AbortNextTick) {
 }
 
 TEST(Process, AbortImmediately) {
-    fake_process<fake_delta> process{};
+    fake_process<test::empty> process{};
 
     process.tick({});
     process.abort(true);