diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-29 09:14:20 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-29 20:53:49 +0200 |
| commit | 39fb8198febde1937019db1c300ec363aab5aa56 (patch) | |
| tree | 52bc32134e8ae2b5587b3a62130baa9acf815b60 /test/job_test.cc | |
| parent | b249700e1da7dd6631a8b4440587f4093a2bdef1 (diff) | |
C++11 tidying.
Diffstat (limited to 'test/job_test.cc')
| -rw-r--r-- | test/job_test.cc | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/test/job_test.cc b/test/job_test.cc index c834ec12e..7fb240843 100644 --- a/test/job_test.cc +++ b/test/job_test.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net> + Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -18,18 +18,23 @@ */ + /** @file test/job_test.cc * @brief Test Job and JobManager. * @ingroup selfcontained */ -#include <boost/test/unit_test.hpp> + +#include "lib/cross.h" #include "lib/job.h" #include "lib/job_manager.h" -#include "lib/cross.h" +#include <boost/test/unit_test.hpp> -using std::string; + +using std::make_shared; using std::shared_ptr; +using std::string; + class TestJob : public Job { @@ -71,12 +76,13 @@ public: } }; + BOOST_AUTO_TEST_CASE (job_manager_test) { shared_ptr<Film> film; /* Single job */ - shared_ptr<TestJob> a (new TestJob (film)); + auto a = make_shared<TestJob>(film); JobManager::instance()->add (a); dcpomatic_sleep_seconds (1); |
