summaryrefslogtreecommitdiff
path: root/test/resource_test.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-01-15 21:22:12 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2017-01-15 21:22:12 +0100
commitb502c26edcfae7a1ed8df928eb450d67223b7b0f (patch)
treed55455013a68d72250233cc8d6294c5d6d6c81b8 /test/resource_test.cc
parent25bf0872b6e3a28f93d222823b09e86549ea36d9 (diff)
Make all the tests use the drumkit_creator functions.
Diffstat (limited to 'test/resource_test.cc')
-rw-r--r--test/resource_test.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/resource_test.cc b/test/resource_test.cc
index 3ebdd6e..c8650a5 100644
--- a/test/resource_test.cc
+++ b/test/resource_test.cc
@@ -28,6 +28,8 @@
#include "../plugingui/resource.h"
+#include "drumkit_creator.h"
+
class ResourceTester : public GUI::Resource {
public:
ResourceTester(const std::string& name)
@@ -53,7 +55,9 @@ public:
void externalReadTest()
{
- ResourceTester rc("kit/0000.wav");
+ auto filename = drumkit_creator::create0000Wav("0000.wav");
+
+ ResourceTester rc(filename);
CPPUNIT_ASSERT(!rc.probeIsInternal());
CPPUNIT_ASSERT(rc.valid());
CPPUNIT_ASSERT_EQUAL((size_t)46, rc.size());