Use move tests for mixer

This commit is contained in:
Dmitry Marakasov 2016-02-03 01:39:51 +03:00
parent 4c8d854c9c
commit 6da3e4e71f

View File

@ -4,6 +4,7 @@
#include <SDL2pp/SDL2pp.hh> #include <SDL2pp/SDL2pp.hh>
#include "testing.h" #include "testing.h"
#include "movetest.hh"
using namespace SDL2pp; using namespace SDL2pp;
@ -16,8 +17,8 @@ BEGIN_TEST(int, char*[])
Chunk sound(TESTDATA_DIR "/test.ogg"); Chunk sound(TESTDATA_DIR "/test.ogg");
Music music(TESTDATA_DIR "/test.ogg"); Music music(TESTDATA_DIR "/test.ogg");
EXPECT_TRUE(sound.Get()); MOVE_TEST(Chunk, sound, Get, nullptr);
EXPECT_TRUE(music.Get()); MOVE_TEST(Music, music, Get, nullptr);
constexpr int delay = 500; constexpr int delay = 500;