C++ API Reference RNBO: src/RNBO_UnitTests.h Source File

RNBO: src/RNBO_UnitTests.h Source File

1 //
2 // RNBO_UnitTests.h
3 // binding
4 //
5 // Created by Stefan Brunner on 27.08.15.
6 //
7 //
8 
9 #ifndef binding_RNBO_UnitTests_h
10 #define binding_RNBO_UnitTests_h
11 
12 // for now we only want to compile unit tests in the debug version
13 // the general idea is, that if you want unit tests, you inlcude this file BEFORE including
14 // RNBO.h, this will define C74_UNIT_TESTS and therefore comoile the unit tests
15 
16 // generally running unit tests needs Juce for now, so be aware that your project has to be prepared to use Juce
17 
18 #if defined(DEBUG) && !defined(C74_UNIT_TESTS)
19 #define C74_UNIT_TESTS
20 #endif
21 
22 #ifdef C74_UNIT_TESTS
23 
24 #include "JuceHeader.h"
25 
26 namespace RNBO {
27 
28  class UnitTestRunner : public juce::UnitTestRunner
29  {
30  // no modifications needed for now
31  };
32 
33 }
34 
35 #endif // C74_UNIT_TESTS
36 
37 
38 #endif // binding_RNBO_UnitTests_h