Ardour  9.0-pre0-582-g084a23a80d
test_util.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 Carl Hetherington <carl@carlh.net>
3  * Copyright (C) 2013-2016 Tim Mayberry <mojofunk@gmail.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License 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  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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);
43 extern void stop_and_destroy_backend ();
44 extern ARDOUR::Session* load_session (std::string, std::string);
45 
46 void get_utf8_test_strings (std::vector<std::string>& results);
47 
48 #endif
Definition: xml++.h:114
int get_test_sample_rate()
void stop_and_destroy_backend()
std::string new_test_output_dir(std::string prefix="")
void check_xml(XMLNode *, std::string, std::list< std::string > const &)
bool write_ref(XMLNode *, std::string)
void create_and_start_dummy_backend()
void get_utf8_test_strings(std::vector< std::string > &results)
ARDOUR::Session * load_session(std::string, std::string)
PBD::Searchpath test_search_path()