Move Editor class to test.{cc,h}
[dcpomatic.git] / test / test.h
index 2b01db294286743dbca0a2631ff72c6f8174be5a..8bcef0604c9b3a080a839735b4e034dc0bc45900 100644 (file)
@@ -19,7 +19,6 @@
 */
 
 
-#include "lib/warnings.h"
 #include "lib/types.h"
 #include <dcp/verify.h>
 #include <boost/filesystem.hpp>
@@ -77,6 +76,7 @@ extern void make_random_file (boost::filesystem::path path, size_t size);
 extern void make_and_verify_dcp (std::shared_ptr<Film> film, std::vector<dcp::VerificationNote::Code> ignore = {});
 extern void check_int_close (int a, int b, int d);
 extern void check_int_close (std::pair<int, int>, std::pair<int, int>, int d);
+extern boost::filesystem::path find_file (boost::filesystem::path dir, std::string filename_part);
 
 
 class LogSwitcher
@@ -97,6 +97,20 @@ public:
 };
 
 
+class Editor
+{
+public:
+       Editor(boost::filesystem::path path);
+       ~Editor();
+
+       void replace(std::string a, std::string b);
+
+private:
+       boost::filesystem::path _path;
+       std::string _content;
+};
+
+
 namespace dcp {
 
 std::ostream& operator<< (std::ostream& s, dcp::Size i);