aboutsummaryrefslogtreecommitdiff
path: root/src/test/ResourceManagerTest.cpp
diff options
context:
space:
mode:
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);
}
-