diff options
author | RJ Ryan <rryan@mixxx.org> | 2015-12-19 21:03:07 -0500 |
---|---|---|
committer | RJ Ryan <rryan@mixxx.org> | 2015-12-19 21:03:07 -0500 |
commit | d3afc7d2e345e222c0eaffdd3589aff1b067ff4a (patch) | |
tree | 456878836fe436fe1d9c735696ba1a6a87039182 /src/controllers/midi/midicontroller.h | |
parent | 36f0484e144b4e18db109daedf298b99221fbeb4 (diff) |
Refactor PortMidiController to support easier testing.
Adds PortMidiDevice, a wrapper around our calls to PortMidi to allow a
test suite to replace it with a mock. Also add a test suite documenting
the current behavior of PortMidiController (and pointing out some
behavior I think we get wrong).
Diffstat (limited to 'src/controllers/midi/midicontroller.h')
-rw-r--r-- | src/controllers/midi/midicontroller.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controllers/midi/midicontroller.h b/src/controllers/midi/midicontroller.h index dd7bd68d89..af4b878e52 100644 --- a/src/controllers/midi/midicontroller.h +++ b/src/controllers/midi/midicontroller.h @@ -63,10 +63,10 @@ class MidiController : public Controller { } protected slots: - void receive(unsigned char status, unsigned char control = 0, - unsigned char value = 0); + virtual void receive(unsigned char status, unsigned char control = 0, + unsigned char value = 0); // For receiving System Exclusive messages - void receive(const QByteArray data); + virtual void receive(const QByteArray data); virtual int close(); private slots: |