ardour
test_util.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2011 Paul Davis
3  Copyright (C) 2011 Tim Mayberry
4 
5  This program is free software; you can redistribute it and/or modify it
6  under the terms of the GNU General Public License as published by the Free
7  Software Foundation; either version 2 of the License, or (at your option)
8  any later version.
9 
10  This program is distributed in the hope that it will be useful, but WITHOUT
11  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13  for more details.
14 
15  You should have received a copy of the GNU General Public License along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19 
20 #ifndef ARDOUR_TEST_UTIL_H
21 #define ARDOUR_TEST_UTIL_H
22 
23 #include <string>
24 #include <list>
25 
26 #include "pbd/search_path.h"
27 
28 class XMLNode;
29 
30 namespace ARDOUR {
31  class Session;
32 }
33 
35 
36 std::string new_test_output_dir (std::string prefix = "");
37 
39 
40 extern void check_xml (XMLNode *, std::string, std::list<std::string> const &);
41 extern bool write_ref (XMLNode *, std::string);
42 extern void create_and_start_dummy_backend ();
43 extern void stop_and_destroy_backend ();
44 extern ARDOUR::Session* load_session (std::string, std::string);
45 
46 #endif
void create_and_start_dummy_backend()
Definition: test_util.cc:100
void stop_and_destroy_backend()
Definition: test_util.cc:114
void check_xml(XMLNode *, std::string, std::list< std::string > const &)
int get_test_sample_rate()
Definition: test_util.cc:150
bool write_ref(XMLNode *, std::string)
Definition: amp.h:29
std::string new_test_output_dir(std::string prefix="")
Definition: test_util.cc:144
PBD::Searchpath test_search_path()
Definition: test_util.cc:133
Definition: xml++.h:95
ARDOUR::Session * load_session(std::string, std::string)