summaryrefslogtreecommitdiff
path: root/src/instrument.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-06-06 19:00:12 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-06-06 19:13:41 +0200
commit7418abaeb3130423bedd6bcb3cef0eb2565ed5d6 (patch)
tree4991351a7e53a0a846c1447e9fe3ffabb31b6acc /src/instrument.h
parent718e8db44d984a97c032dccfe95e3f4707c0835a (diff)
Added unit-test for InstrumentParser.
Diffstat (limited to 'src/instrument.h')
-rw-r--r--src/instrument.h9
1 files changed, 7 insertions, 2 deletions
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;