Extract examine_subtitle_nodes into its own method.
[libdcp.git] / test / test.h
index 31b4bf0ab6122b270567ac756509820a5767142d..d9860687226028bdfeec3abfb8c4d03ec580b1b5 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2013 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 
 */
 
-extern std::string test_corpus;
+#include <boost/filesystem.hpp>
 
-class TestFile
-{
-public:
-       TestFile (boost::filesystem::path file);
-       ~TestFile ();
-       
-       uint8_t* data () const {
-               return _data;
-       }
+namespace xmlpp {
+       class Element;
+}
 
-       int64_t size () const {
-               return _size;
-       }
-
-private:
-       uint8_t* _data;
-       int64_t _size;
-};
+extern boost::filesystem::path private_test;
+extern void check_xml (xmlpp::Element* ref, xmlpp::Element* test, std::list<std::string> ignore);
+extern void check_xml (std::string ref, std::string test, std::list<std::string> ignore);
+extern void check_file (boost::filesystem::path ref, boost::filesystem::path check);