2 Copyright (C) 2011 Paul Davis
3 Copyright (C) 2011 Tim Mayberry
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)
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
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.
20 #ifndef ARDOUR_TEST_UTIL_H
21 #define ARDOUR_TEST_UTIL_H
26 #include "pbd/search_path.h"
34 PBD::Searchpath test_search_path ();
36 std::string new_test_output_dir (std::string prefix = "");
38 int get_test_sample_rate ();
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);
46 void get_utf8_test_strings (std::vector<std::string>& results);