aboutsummaryrefslogtreecommitdiff
path: root/src/test/AudioTest.cpp
blob: e181de9a79789e0e70c827055bf23e668d89ac53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <gtest/gtest.h>

#include <crepe/ComponentManager.h>
#include <crepe/api/AudioSource.h>
#include <crepe/api/GameObject.h>
#include <crepe/system/AudioSystem.h>

using namespace std;
using namespace crepe;
using namespace testing;

class AudioTest : public Test {
public:
	ComponentManager component_manager{};
	AudioSystem system {component_manager};

	void SetUp() override {
		auto & mgr = this->component_manager;
		GameObject entity = mgr.new_object("name");
		entity.add_component<AudioSource>("mwe/audio/sfx1.wav");
	}
};

TEST_F(AudioTest, Default) {
}