blob: 6e2706c07230c8cc2c045fbff7b4767cf2dc7862 (
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 "system/AudioSystem.h"
#include <gtest/gtest.h>
#include <crepe/ComponentManager.h>
#include <crepe/api/AudioSource.h>
#include <crepe/api/GameObject.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) {
}
|