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