summaryrefslogtreecommitdiff
path: root/test/test.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-11-02 23:14:04 +0100
committerCarl Hetherington <cth@carlh.net>2021-11-03 11:29:27 +0100
commit7846d4bfb77c117d931aad20239941a491492a78 (patch)
treebc0d2319ba1400b8d661453c047bc39d417dc1ea /test/test.h
parent91e0b544b6f1b5d3c017a6dc144aade3bc39c78d (diff)
Add ConfigRestorer and use it instead of setup_test_config() directly.
Diffstat (limited to 'test/test.h')
-rw-r--r--test/test.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test.h b/test/test.h
index 217b738f4..2b01db294 100644
--- a/test/test.h
+++ b/test/test.h
@@ -56,7 +56,6 @@ private:
extern bool wait_for_jobs ();
-extern void setup_test_config ();
extern std::shared_ptr<Film> new_test_film (std::string);
extern std::shared_ptr<Film> new_test_film2 (std::string, std::vector<std::shared_ptr<Content>> content = {}, Cleanup* cleanup = nullptr);
extern void check_dcp (boost::filesystem::path, boost::filesystem::path);
@@ -91,6 +90,13 @@ private:
};
+class ConfigRestorer
+{
+public:
+ ~ConfigRestorer();
+};
+
+
namespace dcp {
std::ostream& operator<< (std::ostream& s, dcp::Size i);