Tempo ramps - make ramp test more challenging.
[ardour.git] / libs / ardour / test / test_needing_session.cc
1 #include <glibmm/miscutils.h>
2
3 #include "pbd/compose.h"
4 #include "pbd/enumwriter.h"
5 #include "ardour/session.h"
6 #include "ardour/audioengine.h"
7 #include "test_needing_session.h"
8 #include "test_util.h"
9
10 using namespace std;
11 using namespace ARDOUR;
12 using namespace PBD;
13
14 void
15 TestNeedingSession::setUp ()
16 {
17         const string session_name("test_session");
18         std::string new_session_dir = Glib::build_filename (new_test_output_dir(), session_name);
19         create_and_start_dummy_backend ();
20         _session = load_session (new_session_dir, "test_session");
21 }
22
23 void
24 TestNeedingSession::tearDown ()
25 {
26         delete _session;
27         stop_and_destroy_backend ();
28         _session = 0;
29 }