Improve approximate time reporting a bit (#383).
[dcpomatic.git] / test / job_test.cc
index 86c6dc9e342d45648ae92793be10f029d9d07eea..a77bc949ce123e7e851ea23d038315039476b1a9 100644 (file)
 
 */
 
+#include <boost/test/unit_test.hpp>
+#include "lib/job.h"
+#include "lib/job_manager.h"
+#include "lib/cross.h"
+
+using std::string;
+using boost::shared_ptr;
+
 class TestJob : public Job
 {
 public:
@@ -36,7 +44,7 @@ public:
 
        void run ()
        {
-               while (1) {
+               while (true) {
                        if (finished ()) {
                                return;
                        }
@@ -46,6 +54,10 @@ public:
        string name () const {
                return "";
        }
+
+       string json_name () const {
+               return "";
+       }
 };
 
 BOOST_AUTO_TEST_CASE (job_manager_test)