summaryrefslogtreecommitdiff
path: root/test/tests.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-25 20:52:58 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-25 20:52:58 +0100
commitee7187c25d83a47a106493e66b89888eca6d4344 (patch)
tree68ee60efb9044bf5a201925f89c9f8ddbfe7df81 /test/tests.cc
parentc597fcee56abc2e6d92e3cfbbfe3c7817d9d0cbe (diff)
Use signals2 rather than sigc++
Diffstat (limited to 'test/tests.cc')
-rw-r--r--test/tests.cc30
1 files changed, 16 insertions, 14 deletions
diff --git a/test/tests.cc b/test/tests.cc
index cad7b910..ef25b7c8 100644
--- a/test/tests.cc
+++ b/test/tests.cc
@@ -34,8 +34,10 @@
#define BOOST_TEST_MODULE libdcp_test
#include <boost/test/unit_test.hpp>
-using namespace std;
-using namespace boost;
+using std::string;
+using std::vector;
+using std::list;
+using boost::shared_ptr;
string
j2c (int)
@@ -61,13 +63,13 @@ BOOST_AUTO_TEST_CASE (dcp_test)
t->product_name = "OpenDCP";
t->product_version = "0.0.25";
t->issue_date = "2012-07-17T04:45:18+00:00";
- filesystem::remove_all ("build/test/foo");
- filesystem::create_directories ("build/test/foo");
+ boost::filesystem::remove_all ("build/test/foo");
+ boost::filesystem::create_directories ("build/test/foo");
libdcp::DCP d ("build/test/foo");
shared_ptr<libdcp::CPL> cpl (new libdcp::CPL ("build/test/foo", "A Test DCP", libdcp::FEATURE, 24, 24));
shared_ptr<libdcp::MonoPictureAsset> mp (new libdcp::MonoPictureAsset (
- sigc::ptr_fun (&j2c),
+ j2c,
"build/test/foo",
"video.mxf",
&d.Progress,
@@ -78,15 +80,15 @@ BOOST_AUTO_TEST_CASE (dcp_test)
));
shared_ptr<libdcp::SoundAsset> ms (new libdcp::SoundAsset (
- sigc::ptr_fun (&wav),
- "build/test/foo",
- "audio.mxf",
- &(d.Progress),
- 24,
- 24,
- 2
- ));
-
+ wav,
+ "build/test/foo",
+ "audio.mxf",
+ &(d.Progress),
+ 24,
+ 24,
+ 2
+ ));
+
cpl->add_reel (shared_ptr<libdcp::Reel> (new libdcp::Reel (mp, ms, shared_ptr<libdcp::SubtitleAsset> ())));
d.add_cpl (cpl);