aboutsummaryrefslogtreecommitdiff
path: root/src/test/AudioTest.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/AudioTest.cpp
parentf7d70abf3fee5933034d93f594f898849c5273ad (diff)
`make format`
Diffstat (limited to 'src/test/AudioTest.cpp')
-rw-r--r--src/test/AudioTest.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/test/AudioTest.cpp b/src/test/AudioTest.cpp
index 9c3cb9c..14f57bd 100644
--- a/src/test/AudioTest.cpp
+++ b/src/test/AudioTest.cpp
@@ -1,10 +1,10 @@
-#include <gtest/gtest.h>
#include <gmock/gmock.h>
+#include <gtest/gtest.h>
-#include <crepe/manager/ComponentManager.h>
-#include <crepe/manager/ResourceManager.h>
#include <crepe/api/AudioSource.h>
#include <crepe/api/GameObject.h>
+#include <crepe/manager/ComponentManager.h>
+#include <crepe/manager/ResourceManager.h>
#include <crepe/system/AudioSystem.h>
using namespace std;
@@ -26,21 +26,21 @@ private:
public:
using AudioSystem::AudioSystem;
StrictMock<TestSoundContext> context;
- virtual SoundContext & get_context() {
- return this->context;
- }
+ virtual SoundContext & get_context() { return this->context; }
};
private:
Mediator mediator;
ComponentManager component_manager{mediator};
ResourceManager resource_manager{mediator};
+
public:
- TestAudioSystem system {mediator};
+ TestAudioSystem system{mediator};
TestSoundContext & context = system.context;
private:
GameObject entity = component_manager.new_object("name");
+
public:
AudioSource & component = entity.add_component<AudioSource>("mwe/audio/bgm.ogg");
};
@@ -150,4 +150,3 @@ TEST_F(AudioTest, PlayOnActive) {
system.update();
}
}
-