From 7418abaeb3130423bedd6bcb3cef0eb2565ed5d6 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 6 Jun 2018 19:00:12 +0200 Subject: Added unit-test for InstrumentParser. --- src/instrument.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/instrument.h') diff --git a/src/instrument.h b/src/instrument.h index 0441ed4..e18c14a 100644 --- a/src/instrument.h +++ b/src/instrument.h @@ -42,8 +42,6 @@ class Instrument { - friend class InstrumentParser; - friend class DrumKitParser; public: Instrument(Settings& settings, Random& rand); ~Instrument(); @@ -66,6 +64,13 @@ public: std::size_t getNumberOfFiles() const; private: + // For parser: + friend class InstrumentParser; + friend class DrumKitParser; + + // For unit-tests: + friend class InstrumentParserTest; + void* magic; std::string _group; -- cgit v1.2.3