summaryrefslogtreecommitdiff
path: root/test/memcheckertest.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-05-22 15:40:36 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-05-22 15:40:36 +0200
commit07415bae4e84a4c9316249f14c26c695c5dcadaa (patch)
tree066e71cb860cdd4c16d7f1734f76597fc683f80b /test/memcheckertest.cc
parent27521b890d08f98b61c132c26a6d2a08789e8fed (diff)
Fix memchecker unit test compilation.
Diffstat (limited to 'test/memcheckertest.cc')
-rw-r--r--test/memcheckertest.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/memcheckertest.cc b/test/memcheckertest.cc
index e312ca7..e685361 100644
--- a/test/memcheckertest.cc
+++ b/test/memcheckertest.cc
@@ -54,6 +54,7 @@ class MemCheckerTest
private:
Settings settings;
DrumKit kit;
+ Random random;
const std::string small_kit_path = "kit/small_kit.xml";
const std::string huge_kit_path = "kit/huge_kit.xml";
@@ -71,7 +72,7 @@ public:
void small_drumkit()
{
// load the small kit
- DrumKitParser parser(settings, kit);
+ DrumKitParser parser(settings, kit, random);
CPPUNIT_ASSERT(!parser.parseFile(small_kit_path));
// check if the memchecker thinks it fits into memory
@@ -81,7 +82,7 @@ public:
void huge_drumkit()
{
// load the huge kit
- DrumKitParser parser(settings, kit);
+ DrumKitParser parser(settings, kit, random);
CPPUNIT_ASSERT(!parser.parseFile(huge_kit_path));
// check if the memchecker thinks it doesn't fit into memory
@@ -95,7 +96,7 @@ public:
CPPUNIT_ASSERT_EQUAL(bytes_per_channel, calcBytesPerChannel(audiofile));
// load the huge kit
- DrumKitParser parser(settings, kit);
+ DrumKitParser parser(settings, kit, random);
CPPUNIT_ASSERT(!parser.parseFile(huge_kit_path));
// check if the protected method of the memchecker reports the correct size