diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-11-02 23:14:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-11-04 11:46:03 +0100 |
| commit | e1555a8837da05f135a3705112469206fc17ec80 (patch) | |
| tree | 591de2b5330e351b733a7f5488f35c35aeae2f2b /test/test.h | |
| parent | 89c0fc8bf6893ecde5e220dca96444afd069bf7f (diff) | |
Add ConfigRestorer and use it instead of setup_test_config() directly.
Diffstat (limited to 'test/test.h')
| -rw-r--r-- | test/test.h | 8 |
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); |
