aboutsummaryrefslogtreecommitdiff
path: root/src/test/AudioTest.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-30 17:27:16 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-30 17:27:16 +0100
commitb8194e02679dc88f5c0a240da83a4700ec5200cf (patch)
tree216e2e28793fce2d468b23fa9b5d2a17db32012b /src/test/AudioTest.cpp
parent9eff2e24fa4cf0ffad2b47cc922a6558bc1a9fa1 (diff)
add doxygen comments + clean up
Diffstat (limited to 'src/test/AudioTest.cpp')
-rw-r--r--src/test/AudioTest.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/AudioTest.cpp b/src/test/AudioTest.cpp
index 14f57bd..7644ab7 100644
--- a/src/test/AudioTest.cpp
+++ b/src/test/AudioTest.cpp
@@ -18,8 +18,8 @@ private:
public:
MOCK_METHOD(Sound::Handle, play, (Sound & resource), (override));
MOCK_METHOD(void, stop, (Sound::Handle &), (override));
- MOCK_METHOD(void, set_volume, (Sound &, Sound::Handle &, float), (override));
- MOCK_METHOD(void, set_loop, (Sound &, Sound::Handle &, bool), (override));
+ MOCK_METHOD(void, set_volume, (Sound::Handle &, float), (override));
+ MOCK_METHOD(void, set_loop, (Sound::Handle &, bool), (override));
};
class TestAudioSystem : public AudioSystem {
@@ -48,8 +48,8 @@ public:
TEST_F(AudioTest, Default) {
EXPECT_CALL(context, play(_)).Times(0);
EXPECT_CALL(context, stop(_)).Times(0);
- EXPECT_CALL(context, set_volume(_, _, _)).Times(0);
- EXPECT_CALL(context, set_loop(_, _, _)).Times(0);
+ EXPECT_CALL(context, set_volume(_, _)).Times(0);
+ EXPECT_CALL(context, set_loop(_, _)).Times(0);
system.update();
}
@@ -95,14 +95,14 @@ TEST_F(AudioTest, Volume) {
{
InSequence seq;
- EXPECT_CALL(context, set_volume(_, _, _)).Times(0);
+ EXPECT_CALL(context, set_volume(_, _)).Times(0);
component.volume += 0.2;
}
{
InSequence seq;
- EXPECT_CALL(context, set_volume(_, _, component.volume)).Times(1);
+ EXPECT_CALL(context, set_volume(_, component.volume)).Times(1);
system.update();
}
}
@@ -113,14 +113,14 @@ TEST_F(AudioTest, Looping) {
{
InSequence seq;
- EXPECT_CALL(context, set_loop(_, _, _)).Times(0);
+ EXPECT_CALL(context, set_loop(_, _)).Times(0);
component.loop = !component.loop;
}
{
InSequence seq;
- EXPECT_CALL(context, set_loop(_, _, component.loop)).Times(1);
+ EXPECT_CALL(context, set_loop(_, component.loop)).Times(1);
system.update();
}
}