aboutsummaryrefslogtreecommitdiff
path: root/src/test/ResourceManagerTest.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-30 16:42:21 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-30 16:42:21 +0100
commit9eff2e24fa4cf0ffad2b47cc922a6558bc1a9fa1 (patch)
treee673cba5f221523d37f51b67a155abfc0c415eb3 /src/test/ResourceManagerTest.cpp
parentf7d70abf3fee5933034d93f594f898849c5273ad (diff)
`make format`
Diffstat (limited to 'src/test/ResourceManagerTest.cpp')
-rw-r--r--src/test/ResourceManagerTest.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/test/ResourceManagerTest.cpp b/src/test/ResourceManagerTest.cpp
index 1f56e23..b6be3c0 100644
--- a/src/test/ResourceManagerTest.cpp
+++ b/src/test/ResourceManagerTest.cpp
@@ -3,9 +3,9 @@
#define private public
#define protected public
-#include <crepe/util/Log.h>
-#include <crepe/manager/ResourceManager.h>
#include <crepe/api/GameObject.h>
+#include <crepe/manager/ResourceManager.h>
+#include <crepe/util/Log.h>
using namespace std;
using namespace crepe;
@@ -13,6 +13,7 @@ using namespace testing;
class ResourceManagerTest : public Test {
Mediator mediator;
+
public:
ResourceManager resource_manager{mediator};
@@ -25,19 +26,15 @@ public:
public:
const unsigned instance;
- TestResource(const Asset & src)
- : Resource(src),
- instance(this->instances++) { }
+ TestResource(const Asset & src) : Resource(src), instance(this->instances++) {}
~TestResource() { this->instances--; }
- bool operator == (const TestResource & other) const {
+ bool operator==(const TestResource & other) const {
return this->instance == other.instance;
}
};
private:
- void SetUp() override {
- TestResource::instances = 0;
- }
+ void SetUp() override { TestResource::instances = 0; }
};
unsigned ResourceManagerTest::TestResource::instances = 0;
@@ -72,4 +69,3 @@ TEST_F(ResourceManagerTest, Persistent) {
resource_manager.clear_all();
EXPECT_EQ(TestResource::instances, 0);
}
-