Fixed two typos in the update news
[supercollider.git] / testsuite / supernova / server_synth_factory_test.cpp
blob33e01b92e2a16ac5723bce1ce94889987ea0b27c
1 #include <boost/test/unit_test.hpp>
3 #include "server/synth_factory.hpp"
5 #include "test_synth.hpp"
7 using namespace nova;
8 using namespace std;
10 namespace
12 struct test_synth_definition:
13 public synth_definition
15 test_synth_definition():
16 synth_definition(c_string("foo"))
19 abstract_synth * create_instance(int node_id)
21 return new test_synth(node_id, this);
26 BOOST_AUTO_TEST_CASE( synth_factory_test_1 )
28 rt_pool.init(1<<20);
30 synth_factory sf;
32 sf.register_definition(new test_synth_definition);
34 unique_ptr<abstract_synth> s(sf.create_instance("foo", 1));
36 BOOST_REQUIRE(s.get() != 0);