ControllerTest.cpp (962B)
1 /* 2 ZynAddSubFX - a software synthesizer 3 4 ControllerTest.h - CxxTest for Params/Controller 5 Copyright (C) 2009-2011 Mark McCurry 6 Author: Mark McCurry 7 8 This program is free software; you can redistribute it and/or 9 modify it under the terms of the GNU General Public License 10 as published by the Free Software Foundation; either version 2 11 of the License, or (at your option) any later version. 12 */ 13 #include "test-suite.h" 14 #include <cmath> 15 #include <iostream> 16 #include "../Params/Controller.h" 17 #include "../globals.h" 18 #include "../Misc/Time.h" 19 using namespace zyn; 20 21 SYNTH_T *synth; 22 23 class ControllerTest 24 { 25 public: 26 void setUp() { 27 synth = new SYNTH_T; 28 AbsTime time(*synth); 29 testCtl = new Controller(*synth, &time); 30 } 31 32 void tearDown() { 33 delete testCtl; 34 delete synth; 35 } 36 37 private: 38 Controller *testCtl; 39 }; 40 41 int main() 42 { 43 return test_summary(); 44 }