Only show user-presets in favorite sidebar
[ardour.git] / libs / ardour / test / test_util.h
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
34 PBD::Searchpath test_search_path ();
35
36 std::string new_test_output_dir (std::string prefix = "");
37
38 int get_test_sample_rate ();
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 void get_utf8_test_strings (std::vector<std::string>& results);
47
48 #endif