*/
/** @file test/job_test.cc
- * @brief Basic tests of Job and JobManager.
+ * @brief Test Job and JobManager.
+ * @ingroup selfcontained
*/
+#include <boost/test/unit_test.hpp>
#include "lib/job.h"
#include "lib/job_manager.h"
#include "lib/cross.h"
-#include <boost/test/unit_test.hpp>
-#include <boost/make_shared.hpp>
using std::string;
using boost::shared_ptr;
-using boost::make_shared;
class TestJob : public Job
{
public:
- TestJob (shared_ptr<Film> film)
+ explicit TestJob (shared_ptr<Film> film)
: Job (film)
{
shared_ptr<Film> film;
/* Single job */
- shared_ptr<TestJob> a = make_shared<TestJob> (film);
+ shared_ptr<TestJob> a (new TestJob (film));
JobManager::instance()->add (a);
dcpomatic_sleep (1);