Very basics of colour conversion configuration.
[dcpomatic.git] / test / client_server_test.cc
index f3d72c2fc2d8415b7650e19c579aeaf6d52081ea..d695f96ce182b3f15cba8a57d69836b83e2311e2 100644 (file)
 
 */
 
+#include <boost/test/unit_test.hpp>
+#include <boost/thread.hpp>
+#include "lib/server.h"
+#include "lib/image.h"
+#include "lib/cross.h"
+#include "lib/dcp_video_frame.h"
+
+using std::list;
+using boost::shared_ptr;
+using boost::thread;
+
 void
-do_remote_encode (shared_ptr<DCPVideoFrame> frame, ServerDescription* description, shared_ptr<EncodedData> locally_encoded)
+do_remote_encode (shared_ptr<DCPVideoFrame> frame, shared_ptr<ServerDescription> description, shared_ptr<EncodedData> locally_encoded)
 {
        shared_ptr<EncodedData> remotely_encoded;
        BOOST_CHECK_NO_THROW (remotely_encoded = frame->encode_remotely (description));
@@ -64,6 +75,7 @@ BOOST_AUTO_TEST_CASE (client_server_test)
                new DCPVideoFrame (
                        image,
                        0,
+                       EYES_BOTH,
                        24,
                        200000000,
                        log
@@ -80,11 +92,11 @@ BOOST_AUTO_TEST_CASE (client_server_test)
        /* Let the server get itself ready */
        dcpomatic_sleep (1);
 
-       ServerDescription description ("localhost", 2);
+       shared_ptr<ServerDescription> description (new ServerDescription ("localhost", 2));
 
        list<thread*> threads;
        for (int i = 0; i < 8; ++i) {
-               threads.push_back (new thread (boost::bind (do_remote_encode, frame, &description, locally_encoded)));
+               threads.push_back (new thread (boost::bind (do_remote_encode, frame, description, locally_encoded)));
        }
 
        for (list<thread*>::iterator i = threads.begin(); i != threads.end(); ++i) {